diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2025-03-20 15:38:07 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2025-03-20 15:38:07 -0600 |
| commit | d6c4f2d5467929f854391111419c726fc2d3021c (patch) | |
| tree | 494be26354e46fcf9955ea2ae979772a6aabc7de | |
| parent | b6cb6d737874ef4488d3b98cbe11de5ee4cbf39a (diff) | |
Fixed equation in falsePosition.m. Corrected the equation that sets the new bracket when the root lies in the lower section.
| -rw-r--r-- | Functions/falsePosition.m | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
