Академический Документы
Профессиональный Документы
Культура Документы
We use two stopping conditions in the Secant Method. First, we assume that pi
is sufficiently accurate when / pi – pi-1 / is within a given tolerance. Also, a safeguard
exit based upon a maximum number of iterations is given in case the method fails to
converge as expected.
The approximation pn+1 for n>1, to a root of f(x)=0 is computed from the
approximations pn and pn-1 using the equation:
Examples:
n pn f(pn) pn - pn-1
0 2 (a) -
1 (b) -1 -1
1.01
2 6 (c) 0.01613
n pn f(pn) pn - pn-1
0
Answers:
Answers:
1)
n pn f(pn) pn - pn-1
0 2 61 -
1 1 -1 -1
1.01
2 6 -0.9154 0.01613
1.19
3 1 0.6575 0.17445
2)
n pn f(pn) pn - pn-1
0 2 1 -
3)
n pn f(pn) pn - pn-1
0 2 -2 -
1 3 3 1
2.4000
2 0 -0.24000 -0.60000
2.4444
3 4 -0.02469 0.04444
2.4495
4 4 0.00025 0.00510
2.4494
5 9 0.00000 -0.00005