Question: Problem 2: The bisection method Write a function in a separate .m file with name bisectionMethod with input a function handle f, a left end-point

Problem 2: The bisection method Write a function in a separate .m file with name bisectionMethod with input a function handle f, a left end-point a, a right end-point b, and a tolerance level tol. Your function should do the following: . Check that a 0. If not, it should print an error message and stop execution. Return the vector midPoints that contains all midpoints generated by the bisection method applied to f, with an initial interval [a, b]. Use the stopping criterion of f(m)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
