This commit is contained in:
lwj
2025-06-10 14:27:18 +08:00
parent 0d7b89e21d
commit 89ad8d0f1f
12 changed files with 45 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
#正割法计算方程
def SecantSolve(fx, x0, x1, err=1e-10, N0=100):
count = 0
print(f"k={count}: x{count}={x0}, f(x{count})={fx(x0)}")