Update arithmetic_analysis/newton_raphson.py

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Rohan Anand 2023-07-16 20:50:03 +05:30 committed by GitHub
parent cbaeaa035c
commit cc3d6a62fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ def newton_raphson(
if abs(function_value) < precision: if abs(function_value) < precision:
return float(x) return float(x)
x = x - (function_value / derivative_value) x -= function_value / derivative_value
return float(x) return float(x)