Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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
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