mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 02:18:39 +00:00
Update arithmetic_analysis/newton_raphson.py
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
cbaeaa035c
commit
cc3d6a62fc
@ -51,7 +51,7 @@ def newton_raphson(
|
||||
if abs(function_value) < precision:
|
||||
return float(x)
|
||||
|
||||
x = x - (function_value / derivative_value)
|
||||
x -= function_value / derivative_value
|
||||
|
||||
return float(x)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user