Académique Documents
Professionnel Documents
Culture Documents
Introduction
Bisection Method:
A Mathematical Property
Well-known Mathematical Property:
If a function f(x) is continuous on the interval
[a..b] and sign of f(a) sign of f(b), then
GRAPH OF e 1
x
GRAPH OF e x
Examples
x 2 4 sin( x)
GRAPH OF
x 2 4 sin( x)
Bisection Method
Algorithm
1.Let a and b be such that f(a)*f(b) < 0
2.Let c = ( a + b ) / 2
3.If f(a) * f(c) < 0 then b = c
else a = c
4.If more accuracy is required go to step 2
5.Print the approximate solution (a + b)/2
16
GRAPH OF x-sin(x)-0.5
EXAMPLE