Question: MATLAB CODE function mynewrep(f,f1,x0,n) x = x0; for i = 1:n x = x - f(x)/f1(x); disp([ i x f(x)]) if f(x) <0.01 break end

MATLAB CODE

function mynewrep(f,f1,x0,n)

x = x0;

for i = 1:n

x = x - f(x)/f1(x);

disp([ i x f(x)])

if f(x)<0.01

break

end

end

end

Modify the code to find the root only at f(x)<0.01 using Newton-Rephson Method without showing any iteration. Also find put the root of equation, f(x)=x5-3x-10, take initial guess, x0=2

Please write full code (Full Answer )

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!