Question: MATLAB IS NEEDED FOR THESE PROBLEMS **** Problem 1 [6 pts]: For an iterative method, we define true relative error, Et, and approximate relative error,
![MATLAB IS NEEDED FOR THESE PROBLEMS **** Problem 1 [6 pts]:](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4e259a3b3b_76066f4e2590050a.jpg)
MATLAB IS NEEDED FOR THESE PROBLEMS
**** Problem 1 [6 pts]: For an iterative method, we define true relative error, Et, and approximate relative error, Ea, at iteration k (k = 0,1,2, ...) as (current approximation true solution| |*k+1 Et = true solution (current approximation previous approximation|| |Xk+1 xk Ea = |current approximation|| Xk+1 Consider function f(x) = xe* - cos x. (1) Apply the bisection method to find the root of f(x) = 0 within interval (0,1). Use (0,1) as the initial bracketing interval. Iterate until Eq is less than 10-4. Show &t at each iteration that is, plot vs. iteration number. (To get the ''true solution, you may run the bisection method until Eq is very small, say, less than 10-7.) (2) Repeat (1) using the false-position (linear interpolation) method. (3) For the same equation, f(x) = 0, apply Newton's method with an initial guess of Xo = 1, and the same stopping criterion &a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
