Question: ( 4 0 / 1 0 0 ) Using the algorithms described in the class notes ( Lecture - 3 ) design two functions (
Using the algorithms described in the class notes Lecture design two functions you may use the mlanguage and work in Matlab or use any highlevel language: one of them should utilize the secant method and another one should utilize the false position regula falsi" method for solving nonlinear equations fx
These functions must use the following calling arguments:
initial approximations xx delta predetermined tolerance value a function utilizing fx a flag determining a stopping criterion. Your functions shall return a root, which was found, and the number of iterations needed to find it
Your function shall give the user options to stop the iterative process and have corresponding branches, accordingly an option to be chosen must be the Flag argument in your respective function:
a An absolute approximate error is used to stop the process. You may predict the number of iterations in advance in such a case.
b An absolute relative approximate error is used to stop the process.
c Estimation of a true absolute error is used to stop the process.
d Conjunction of an absolute approximate error and an estimated true absolute error is used to stop the process. You need to comment on every single line of your functions explaining what this line of your code stands for.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
