Question: (a) Create a secant function in a file named secant.m that uses de secant method for the solution of non-linear equations. The function stops after
(a) Create a secant function in a file named secant.mthat uses de secant method for the solution of non-linear equations. The function stops after a maximum number of iterations Nmaxwhere the absolute value of the function is smaller than a tolerance e.
(b) Apply secant to the following functions with e= 0.5 x 10-6and Nmax= 30.

6. Secant method- MATLAB (a) Create a secant function in a file named secant.m that uses de secant method for the solution of non-linear equations. The function stops after a maximum number of iterations Nmax where the absolute value of the function is smaller than a tolerance . (b) Apply secant to the following functions with = 0.5 x 10-6 and Nmax = 30. f1(x) = x2 - 5 cos sur 0.5,4 f2(x) = tan - 2 sur (1,3 f3(x) = 50 x In x - 3x2 sur 150, 100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
