Bisection Algorithm
For any continuous function f(x),
- Find two points, say a and b such that a < b and f(a) x f(b) < 0
- Find the midpoint of a and b, say 't'
- 't' is the root of the given function if f(t)=0;
- else follow the next step Divide the interval[a, b]
- If f(t) x f(a) < 0, there exist a root between 't' and 'a' , else if f(t) x f(b) < 0,
there exist a root between 't' and 'b' Repeat above three steps until f(t)=0.
The bisection method is an approximation method to find the roots of the given equation by
repeatedly dividing the interval. This method will divide the interval until the resulting
interval is found, which is extremely small.
Calculate