Professional Documents
Culture Documents
49
Figure 2.1
y
f (b)
y f (x)
p3
f (p1)
a a1
pp
p2
b b1
f ( p2)
f (a)
a1
a2
p1
p2
a3
ALGORITHM
2.1
b1
b2
p3
b3
Bisection
To nd a solution to f (x) = 0 given the continuous function f on the interval [a, b], where
f (a) and f (b) have opposite signs:
INPUT endpoints a, b; tolerance TOL; maximum number of iterations N0 .
OUTPUT approximate solution p or message of failure.
Step 1
Set i = 1;
FA = f (a).
Step 2
Step 4
Step 5
Set i = i + 1.
Step 6
Step 3
Step 7
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.