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
Get step-by-step solutions from verified subject matter experts
