Question: In MATLAB code please 2.(20 pts) Use (i) besection method, (i) Newton's method, and (ii) secant method, to find ALL the solutions of the following
In MATLAB code please

2.(20 pts) Use (i) besection method, (i) Newton's method, and (ii) secant method, to find ALL the solutions of the following equation: 3 f(x) = sin(x)-x+ Requirements: (1) Plot a curve for function f(a) for suitable range of z containing all the solutions; (ii) for each root, use matlab fzero function to find the approximate solution a, and use it as the exact solution for calculating the error in each iteration. In each iteration, print out n, zm, f(xn), Itn- r: (iii) For each root, using the error Ien -. to determing an order of convergence approximately for each solution method, compare and discuss the theoretical convergence order and the actual order you calculated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
