Question: 1) Consider the function f(x) = cos(x) - x2 + 2 Use Secant Method and Bisection Method to find the roots of the given function.

1) Consider the function f(x) = cos(x) - x2 + 2 Use Secant Method and Bisection Method to find the roots of the given function. Start with (a, b) = (0,2) and (PO, Pz) = (1, 1.5). a) Write the function in MATLAB language b) Write the derivative of the function in MATLAB language c) How many iterations did Secant Method obtained? d) How many iterations did Bisection Method obtained? Why is the e) Which method is the best? best
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
