Question: 2. nt method a user-defined MATLAB function Create a function m-file named secant.m to implement secant method by completing the following codes. There are quite

2. nt method a user-defined MATLAB function Create a function m-file named secant.m to implement secant method by completing the following codes. There are quite a few blanks this time. You will need to fill in the blanks and submit part 2 as a part of an upcoming homework. function [root, iter] "ecant{func , xr2, xr1, maxit) = ear es, 5ecant: Secant root finding method iter] -secant(func, xrz, xr1, maxit} [root, input e, es, func = name of function xr1, xr2 initial guesses e = desired relative error {default 0.0001 maxit maximum allorale iteration (default = 20) output root = re 1 root ea approximate relative error iter = number of iteration generated to store iterations text file ' ecant out.txt' if nargin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
