Newton-Raphson/Secant Method Numeric Differentiation For this assignment we will
ID: 3839663 • Letter: N
Question
Newton-Raphson/Secant Method Numeric Differentiation For this assignment we will be writing the following MATLAB functions. froot.m df.m froot The function froot0 will implement the Newton-Rahpson Method or Secant Method depending on the arguments passed. The first argument will be the anonymous function to find the root of The second argument will be the initial guess. If only two arguments are passed, froot0 will use a first order derivative approximation of the anonymous function for f(r) We will use the function d to estimate the derivative of f(r). If three arguments are passed, and the third argument is an anonymous function, then froot0 will use the Newton-Raphson method to find the root of f(z). The third argument will be the anonymous function for f (a). The function froot0 needs to satisfy the following guidlines. The algorithm performs no more than 1000 iterations. The algorithm breaks the loop if the current guess for the root is within 10 significant figures of the previous guess.Explanation / Answer
Try This.