Question: M ller ' s method is a root finding method that uses three initial approximations, p 0 , p 1 , and p 2 ,

Mller's method is a root finding method that uses three initial approximations, p0,p1, and p2,
and determines the next approximation p3 by considering the intersection of the x-axis with
the parabola through (p0,f(p0)),(p1,f(p1)), and (p2,f(p2)). The algorithm considers three given
initial approximations p0,p1 and p2, and generate the value of p3 based on the following
p3=p2-2cb+sgn(b)b2-4ac2
where
c=f(p2)
b=(p0-p2)2[f(p1)-f(p2)]-(p1-p2)2[f(p0)-f(p2)](p0-p2)(p1-p2)(p0-p1)
a=(p1-p2)[f(p0)-f(p2)]-(p0-p2)[f(p1)-f(p2)](p0-p2)(p1-p2)(p0-p1)
Then continue the iteration, with p1,p2 and p3 replacing p0,p1 and p2.
Write an M-file function that implements the Mller's method for root-finding problem. The
input parameters should be : the function f, three initial guesses, an error tolerance, and the
maximum number of iterations. The algorithm should stop when the approximate relative error
is less than or equal to the tolerance. Your output should be a table where each row contains the
number of iteration, the value of the root pn, and the approximate relative error.
M ller ' s method is a root finding method that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!