Question: This is a fixed-point iteration matlab code: clear;clc;format ('long','g') i=1; x(i)=0; error(i) = 9999; while error(i) >= 0.05 x(i+1) = (0.2062129)*(20+(2*x(i)))^(2/5); error(i+1)=abs((((x(i+1)-x(i))/(x(i+1)))*100)); i=i+1; end disp('

This is a fixed-point iteration matlab code:

clear;clc;format ('long','g')

i=1;

x(i)=0;

error(i) = 9999;

while error(i) >= 0.05

x(i+1) = (0.2062129)*(20+(2*x(i)))^(2/5);

error(i+1)=abs((((x(i+1)-x(i))/(x(i+1)))*100));

i=i+1;

end

disp(' root error(%)');

disp([x',error'])

AND the solution

This is a fixed-point iteration matlab code: clear;clc;format ('long','g') i=1; x(i)=0; error(i)

Can someone translate this into Mathematica code please? I need it to display the values the same way as listed above.

root error(%) 0.683483174832329 0.701799373609997 0.702280403674005 0.7022930300902 100 2.60989101250566 0.068495441634367 0.00179788430953184 root error(%) 0.683483174832329 0.701799373609997 0.702280403674005 0.7022930300902 100 2.60989101250566 0.068495441634367 0.00179788430953184

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 Databases Questions!