Question: Problem 4 (10 points) (Core Course Outcome 1) Develop a Matlab function that nds the root of a function f (:6) starting from the given

 Problem 4 (10 points) (Core Course Outcome 1) Develop a Matlab

Problem 4 (10 points) (Core Course Outcome 1) Develop a Matlab function that nds the root of a function f (:6) starting from the given initial estimates 33(1) and mm) with an estimated relative error of at least a: using the secant method. Name the function mySecant using as input the anonymous function f, the initial estimates x1 and x2, and the required estimated relative error eps. As output, the function should provide four scalar variables: the numerical solution, its tolerance in function, its estimated relative error, and the number of iterations performed. If the requested estimated relative error cannot be reached within N = 100 iterations, the function should output an error message and exit. You can debug your function using the rst 3 iterations of problem 10). Problem 4 required submission: 0 Hardcopy printout of well commented function you coded 0 Upload of your combined code for all problems to the Homework 4 link

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 Mathematics Questions!