Академический Документы
Профессиональный Документы
Культура Документы
f(x) f(xn-1)
f(y) f(xn)
h(x,y) xn+1=h(xn-1,xn)
x y xn-1 xn
To get xn+1 from xn and xn-1 we write out the equation of the secant line and using
the points xn and xn-1. We then plug in the point (xn+1,0) and solve for xn+1.
f ( xn ) f ( xn 1 )
y f ( xn ) x xn equation of secant
xn xn 1
f ( xn ) f ( xn 1 )
0 f ( xn ) xn1 xn substitute (xn+1,0)
xn xn 1
f ( xn ) xn xn 1
xn 1 xn solve for xn+1
f ( xn ) f ( xn 1 )
f ( xn ) xn xn 1
xn 1 xn xn+1=h(xn-1,xn)
f ( xn ) f ( xn 1 )
The equation above gives the recursively defined sequence for xn. This is what is
used for the Secant Method. The halting condition is usually given by the
Standard Cauchy Error.
Here are some examples of how you apply the secant method.
f ( x) x 2 2 f ( x) x 3 2 x 3
f ( x)( y x) f ( x ) y x
h ( x, y ) x h ( x, y ) x
f ( y ) f ( x) f ( y ) f ( x)
h ( x, y ) x
x
2 ( y x)
2
h ( x, y ) x
x 3
2 x 3 ( y x)
(( y 2 2) ( x 2 2))
( y 3 2 y 3) ( x 3 2 x 3)
n xn h(xn-1,xn) n xn h(xn-1,xn)
0 0 0 0
1 1 2 1 1 -3
2 2 1.33333 2 -3 1.8