From cc3d6a62fc9ee3faa7cbd958715f367e899462ec Mon Sep 17 00:00:00 2001 From: Rohan Anand <96521078+rohan472000@users.noreply.github.com> Date: Sun, 16 Jul 2023 20:50:03 +0530 Subject: [PATCH] Update arithmetic_analysis/newton_raphson.py Co-authored-by: Christian Clauss --- arithmetic_analysis/newton_raphson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson.py b/arithmetic_analysis/newton_raphson.py index d7ba801a5..e557f40e7 100644 --- a/arithmetic_analysis/newton_raphson.py +++ b/arithmetic_analysis/newton_raphson.py @@ -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)