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

In MATLAB code please 2.(20 pts) Use (i) besection method, (i) Newton's

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!