Question: The equation is f(x) = x^2 - 3 a = 1 b = 2 e = 1/100 n = 7 1) Write a Matlab program

The equation is f(x) = x^2 - 3
a = 1
b = 2
e = 1/100
n = 7
1) Write a Matlab program to implement the bisection method for finding an approximation to the solution of the equation f(x)=0. Hard code near the top of your program the important beginning information: a,b,f, and , where these are as we defined them in class. Your program needs to ensure that f(a) and f(b) have opposite signs. If they do not, your program should terminate and inform the user why. Assuming that f(a) and f(b) have opposite signs, proceed with the bisection method in which the sequence of midpoints converges to the solution of (1). You stop when n, the number of iterations, is such that n>log2ba, where a and b here refer to their original values. When you are all done, you should write a message to the screen that says something like "the solution is (whatever it is)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
