Question

2. Consider the function f(x) = 3. (a) Implement the bisection method on the interval (-1,1.5) with a tolerance of 10-8. How many steps did it take? (b) Implement the regula falsi method on the interval (−1, 1.5) with a tolerance of 10-8. How many steps did it take?

Fig: 1