Problem 965. False position (linear interpolation) method of finding a root.
Test the false position algorithm described in Chapter 5 of Steven C. Chapra's textbook, Applied Numerical Methods with MATLAB for Engineers and Scientists. The first test case uses the following problem on the interval [1 3].
f(x)=x^2-4=0
The first test will be a single iteration of false position. Other tests for varying termination criteria, intervals, and other functions will be added later.
Solution Stats
Problem Comments
-
3 Comments
Richard Zapor
on 3 Oct 2012
A link to the "false position method" can be placed in the Challenge description.
The syntax is .
I found the algorithm at http://math.fullerton.edu/mathews/n2003/regulafalsi/RegulaFalsiProof.pdf
will create a link with a name. Spaces before the < and after the > are needed.
Rafael S.T. Vieira
on 2 Nov 2020
The idea of the method is that the lower and upper bounds for x define a line. Wherever this line crosses the x-axis becomes our new estimate for the root (1st iteration is like the secant method). https://en.wikipedia.org/wiki/Regula_falsi
Rafael S.T. Vieira
on 2 Nov 2020
This problem needs more test cases.
Solution Comments
Show commentsProblem Recent Solvers23
Suggested Problems
-
7652 Solvers
-
4464 Solvers
-
279 Solvers
-
729 Solvers
-
Find last zero for each column
554 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!