diff --git a/src/NumericalAnalysis/RootFinding/NewtonsMethod.php b/src/NumericalAnalysis/RootFinding/NewtonsMethod.php index e7052e339..b22e411c8 100644 --- a/src/NumericalAnalysis/RootFinding/NewtonsMethod.php +++ b/src/NumericalAnalysis/RootFinding/NewtonsMethod.php @@ -28,8 +28,8 @@ public static function solve(callable $function, array $args, $target, $tol, $po Validation::tolerance($tol); // Initialize - $args1 = $args; - $guess = $args[$position]; + $args1 = $args; + $guess = $args[$position]; do { $args1[$position] = $guess + $tol; // load the initial guess into the arguments