We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 234b0a7 commit 2b36528Copy full SHA for 2b36528
maths/newton_raphson.py
@@ -29,7 +29,6 @@ def newton_raphson(f, x0=0, maxiter=100, step=0.0001, maxerror=1e-6,logsteps=Fal
29
a = a - f(a)/f1(a) #Calculate the next estimate
30
if logsteps:
31
steps.append(a)
32
- error = abs(f(a))
33
if error < maxerror:
34
break
35
else:
0 commit comments