Professional Documents
Culture Documents
0 28
x L xU
xr Eq 5.6
=14 f(c)
2
Step 3: Check the root:
We check whether the root is actually in the
middle, upper subinterval or lower subinterval:
c
1st Iteration f(xr)=f(14)= 1.5687 > 0 f(12)f(14) > 0
14.75 - 14.5
a 100 1.6949%
14.75
f (xL)f(xr)>0
xL=14, xU=16
2nd Iteration
12 14 16 xr=15
f (xL)f(xr)<0
xL=14, xU=15
3rd Iteration
12 14 16 xr=14.5
f (xL)f(xr)>0
xL=14.5, xU=15
4th Iteration
12 14 16 xr=14.75
3 14 15 14.5 3.448
xU xL
2 x xL
a 100% U 100% Eq 5.10
xU xL xU xL
2
Besides the ability to analysis the exact upper bound of the true error
The bisection method also allows us to calculate the number of iterations
required to obtain an absolute error before starting the iterations
Before starting the technique, the absolute error is:
EA0=xU0 xL0 = x0
After the first iteration, the error becomes:
EA1 = x0/2
Because each succeeding iteration halves the error, a general formula
relating the error and the number of iterations, n, is:
x 0 This is the maximum error
E An Eq 5.11
2n
If EA,d is the desired error, the above equation can be written as:
x 0
log
x 0 x 0
E A,d
2n n log 2n log n
EA E A,d log 2
x 0
n log 2
Eq 5.12
E A,d
Department of Mechanical and Biomedical Engineering City University of Hong Kong