Question: Help would be greatly appreciated :) (PLEASE COMPLETE USING MATLAB) Part B (Based off Week 3 Content) Newtons Method approximates a root of a function
Help would be greatly appreciated :)
(PLEASE COMPLETE USING MATLAB)

Part B (Based off Week 3 Content) Newtons Method approximates a root of a function by iterating through the equation where xn is the nth estimate for the root of the function f(z). In order to it- erate through this method, we need to provide an initial guess for the root, For example, if we apply this method to f(r) - sinz using r1, we note that f( sin(1) (0.5574 sin(-0.5574) cos(-0.5574)0.0659 z3--0.5574 0.069 sin(0.0659) 0s(0.06599.5722 x 10- We can see that as we iterate through Newtons Method we are converging towards 0, which is one of the roots of f() sin(x) Questions: 1. Create a function that can numerically solve f () given f(z) and Tn are provided as inputs. You can do this using the central finite difference formula: 2h where h - 10-10 2. Create a function that can apply a single iteration of Newtons Method given f() and z are provided as inputs. The output should be r. 3. Using a for loop, create a function that can apply N iterations of New- tons Method given f(r), 21 and N are provided as inputs. The output should be a vector containing all iterations of xn (should have a length of N +1) Useful Control Structures and Functions: for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
