Question: Write a MATLAB program that finds the three roots of the following equation using the False Position Method: f(x) = x^3 - 2x^2 - 5x
Algorithm: Step 1: Choose lower a and upper b guesses for the root such that the function changes sign over the interval. This can me checked by ensuring that f(a)f(b)0, then a=c; return to Step 2 . (c) if f(a)f(c)-0 (or f(a)f(c)=c) , then error=0, and c is the root, Stop computation when zero or (small number)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
