SLIDE 8 August 12, 2005 OSU/CIS 541 29
Example
( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )
0,0 16.696386 1,0 40.583393 1,1 48.583393 2,0 109.322528 2,1 132.235574 2,2 137.814897 3,0 135.031747 3,1 143.601487 3,2 144.359214 4,0 142.068615 4,1 144.414238 4,2 144.468421 5,0 143.866937 5,1 144 D D D D D D D D D D D D D D = = = = = = = = = = = = = =
( )
.466377 5,2 144.469853 D =
1 15 extrapolate
August 12, 2005 OSU/CIS 541 30
Example
- Which converges up to eight decimal
places.
16.696386 40.583393 48.583393 109.322528 132.235574 137.814897 135.031747 143.601487 144.359214 144.463092 142.068615 144.414238 144.468421 144.470154 144.470182 143.866937 144.466377 144.469853 144.469876 144.469875 5, D(
)
5 144.469875 =
1 1023 extrapolate 1 255 extrapolate 1 63 extrapolate 1 15 extrapolate 1 3 extrapolate August 12, 2005 OSU/CIS 541 31
Example
- We can look at the (theoretical) error term
- n this example.
- Taking the derivative:
( ) ( ) ( ) ( )
2 5 5 1 12 2 5 7
5,5 ,5 2 1 1.3 (6,5) ,5 4096 2
k k k k
h D L A k h f A A k
∞ = + ∞ =
⎛ ⎞ = + ⎜ ⎟ ⎝ ⎠ ⎛ ⎞ ⎛ ⎞ ′ = + + ⎜ ⎟ ⎜ ⎟ ⎝ ⎠ ⎝ ⎠
∑ ∑
2-144 (1.3) 144.469874253 f ′ = K
Round-off error
August 12, 2005 OSU/CIS 541 32
Second Derivatives
- What if we need the second derivative?
- Any guesses?
( ) ( ) ( ) ( )
2 3 4 5 4 5 2 3 4 5 4 5
( ) ( ) ( ) ( ) ( ) ( ) ( ) 2 3! 4! 5! ( ) ( ) ( ) ( ) ( ) ( ) ( ) 2 3! 4! 5! h h h h f x h f x f x h f x f x f x f x h h h h f x h f x f x h f x f f x f x ς ′ ′′ ′′′ + = + + + + + + ′ ′′ ′′′ − = − + − + − + L L