Question: The equation f(x) = x +e Cos I = 0 has a unique root a, and it is in the interval (-1,0). Use the secant

The equation f(x) = x +e Cos I = 0 has a unique root a, and it is in the interval (-1,0). Use the secant method to find it. To this end, download secant.m from your textbook or write your own secant routine. Then, write another script to call the routine and compute the root and the convergence of the method using the formula in Problem 1. Use the following input parameters: x0 = -1,21 = 0,6 = 10-7, MaxIter = 20. Then, print your output in the following format and save it in a text file: n en 1 0 1 0 : : To estimate the convergence order p, use the last three en
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
