Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions