From d6c4f2d5467929f854391111419c726fc2d3021c Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Thu, 20 Mar 2025 15:38:07 -0600 Subject: Fixed equation in falsePosition.m. Corrected the equation that sets the new bracket when the root lies in the lower section. --- Functions/falsePosition.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Functions/falsePosition.m b/Functions/falsePosition.m index 9e4a236..d3ba428 100644 --- a/Functions/falsePosition.m +++ b/Functions/falsePosition.m @@ -32,7 +32,7 @@ while(1) ea = abs((xr-xrold)/xr)*100; end if func(xl)*func(xr)<0 - xl = xr; + xu = xr; else xl = xr; end -- cgit v1.2.3