This commit is contained in:
2025-06-10 14:29:12 +08:00
parent 0d7b89e21d
commit 68eb32f618
15 changed files with 23 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ def fx(x):
x = 1e-10 # Avoid division by zero
return math.sin(x)/x
# 龙贝格方法 积分
def Romberg(a, b, err):
t00 = (b-a)*(fx(a)+fx(b))/2
t01 = t10 = t11 = t20 = t21 = t30 = t31 = 0