Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

provide detail explanation pleaseee Problem #6 (20%): Newton-Raphson Method Part

ID: 1846870 • Letter: P

Question

provide detail explanation pleaseee

Problem #6 (20%): Newton-Raphson Method Part (a) Write a MATLAB program that implements the Newton-Raphson method to find the roots of a function. Use the tool to find all values of x where fox 3.0 given the following function and interval. Ensure the relative error of your answers are less than 10 10 Report 10 digits. You will be graded on your accuracy. f (x) NIS- 29x +12x 3 x 3 Part (b) Visualize the first four iterations for finding one of the roots above. At a minimum, show the function fx), the y 0 axis, the current and next guesses for the root, and the slope projection to the y-0 axis. Do not show any information not associated with the method

Explanation / Answer

part A:


syms x

format long


f=sqrt(18-29*x^2+12*x^4-x^6)-3;

g=diff(f);

err=1;

x0=2.5;


while(err>=1e-10)

f1=subs(f,x0);

g1=subs(g,x0);

x1=x0;

x0=x0-(f1/g1);

err=abs(x1-x0);


end

disp(x0)