Professional Documents
Culture Documents
-4
-8
0 1
0.5
2
1 0
100% 100%
1 0
xl
xu
xr
f(xl)
0
0
0.25
0.375
0.375
1
0.5
0.5
0.5
0.4375
0.5
0.25
0.375
0.4375
0.40625
-2
-2
-0.73438
-0.18945
-0.18945
f(xr)
0.375
-0.73438
-0.18945
0.08667
-0.05246
f(xl)f(xr)
-0.75
1.46875
0.13913
-0.01642
0.009939
a
100.00%
33.33%
14.29%
7.69%
Chapter5,Problem8.
Find the positive square root of 18 using the false-position method to within s 0.5% . Employ
initial guesses of xl 4 and xu 5 .
Answer:
The square root of 18 can be set up as a roots problem by determining the positive root of the
function
f ( x ) x 2 18 0
xr 5
7(4 5)
4.22222
27
Therefore, the root is in the second interval and the lower guess is redefined as xl = 4.22222.
The second iteration is
xr 4.22222
a
7(4.22222 5)
4.24096
0.17284 7
4.24096 4.22222
100% 0.442%
4.24096
Thus, the computation can be stopped after just two iterations because 0.442% < 0.5%. Note
that the true value is 4.2426. The technique converges so quickly because the function is very
close to being a straight line in the interval between the guesses as in the plot of the function
shown below.