Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.00179788430953184Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started