Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in MATLAB For the function () = 7.25 3 32 + 2 2.5 a. Find the root of on the interval [2,3] [6,8] with a
in MATLAB For the function () = 7.25 3 32 + 2 2.5 a. Find the root of on the interval [2,3] [6,8] with a tolerance of 1012 using the false position method. Use the absolute relative error (i.e., absolute value of the approximate error). Your code should throw an error message if the provided number of maximum iterations is too small (say 10). If the provided number of maximum iterations is large enough (say 400), print the root and the number of iterations required. b. The same questions as a) but for secant method. Note: even though secant method is an open method, but it requires 2 initial guesses (see my iPad notes). c. Rewrite your false position method so that it saves the sequence of approximations of the root and the sequence of the error in two vectors. Plot the absolute relative error (i.e., absolute value of the approximate error) as a function of iteration on a base-10 logarithmic scales on both axes. Does the plot make sense? Why? d. The same questions as c) but for secant method
Step 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