Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 calculatedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started