Question: Secant Method In this exercise, you will program the secant method for approximating the root to a function of one variable Write the function secant.m

 Secant Method In this exercise, you will program the secant methodfor approximating the root to a function of one variable Write thefunction secant.m that approximates a root of a function of one variable.

Secant Method In this exercise, you will program the secant method for approximating the root to a function of one variable Write the function secant.m that approximates a root of a function of one variable. Inputs f, the function whose root you are trying to find, a, one approximation of the root b, a second approximation of the root and t, tolerance for the error. Output: , the approximation for the root of the function. The function works by updating a and b each time through a while loop. The exiting criteria for the loop will be the same as the bisection method. Each time through the loop, the function calculates a value c such that c is the root of the line that passes through the points (a,f(a)) and (b,f(b)). The value of c is calculated using the formula

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