Question: x 1 = ( x 0 ) = x 0 - 4 f 0 f 0 ' + - [ 9 f 0 ' 2

x1=(x0)=x0-4f0f0'+-[9f0'2-12f0f0'']12.
(i) Write a Maple procedure which takes as its arguments a function f, an initial estimate
for a root x0, a number of steps n and a boolean called display. The procedure
should use the function from part (d) to produce a sequence of iterates x1,x2,dots,xn,
such that xj+1=(xj). In each step, the sign that gives the denominator the larger
magnitude should be chosen. The procedure should return xn as its result. If display
is true, the procedure should display |f(x)| at each step using scientific notation (use
%10.3 e with printf). If display is false, no information should be displayed while
the procedure is running.
(ii) Test your procedure for the case
f(x)=10x4-61x3+13x2+122**x-66,
with the initial estimate x0=5.0. Perform a further test using an arbitrarily chosen
function (but not a polynomial). Estimate the rate of convergence in both cases.
x 1 = ( x 0 ) = x 0 - 4 f 0 f 0 ' + - [ 9 f 0 ' 2

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!