Question: MATLAB CODING HELP PLZ Secant method is given by df= (f(1+1) -f(1))/(x(1+1)-x(i)); A MATLAB Script (with bug), using the for-loop, to compute the root of
MATLAB CODING HELP PLZ

Secant method is given by df= (f(1+1) -f(1))/(x(1+1)-x(i)); A MATLAB Script (with bug), using the for-loop, to compute the root of fx) x4 - 19 is given by x1 -2 f1-x1*4-16; x2= 2; f2-x24-16; n 3; for i=1:n df-(f2 x1)*(x1-f1); x3=x1 + x2/df; f3=x3*4-16; disp(i x1 x2 x3]) x1-x2; x2=x3; f1-f2; f2-f3; end (a) Fix the bug and write the correct code. (b) What is the value of the root closest to at 5 iteration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
