© 2001 by CRC Press LLC
Out[5]: =
In[6]: = p2/. x -> 3.75 Out[6]: = 7.40625
4.4 PROBLEMS
D
IFFTABL
1. Construct the difference table based on the following listed data and then
find the y value at x = 4.5 by using the backward-difference formula up
to the third-order difference.
2. Explain why interpolations using Equation 9 by the first through fourth
orders all fail to match the exact value of y(x = 1.24) = 7.3274 by making
4 plots for x values ranging from 1.2 to 1.3 with an increment of x =
0.001. These 4 plots are to be generated with the 4 equations obtained
when the first 2, 3, 4, and 5 points are fitted by a first-, second-, third-,
and fourth-degree polynomials, respectively. Also, draw a x = 1.24, ver-
tical line crossing all 4 curves.
3. Find the first-, second-, third-, and fourth-order results of y(x = 1.56) by
use of Equation 15.
4. Write E
r
in terms of binomial coefficient and the backward-difference
operator , similar to Equation 7.
5. Find the first-, second-, third-, and fourth-order results of y(x = 1.24) by
use of Equation 24.
6. Find the first-, second-, third-, and fourth-order results of y(x = 1.56) by
use of Equation 25.
7. Given 6 (x,y) points (1,0.2), (2,0.4), (3,0.7), (4,1.5), (5,2.9), and (6,4.7),
parabolically interpolate y(x = 3.4) first by use of forward differences and
then by use of backward differences.
8. Modify either the QuickBASIC or FORTRAN version of the program
DiffTabl to include the fifth difference for the need of forward or back-
ward interpolation and numerical differentiation.
9. Given 5 (x,y) points (0,0), (1,1), (2,8), (3,27), and (4,64), construct a
complete difference table based on these data. Compute (1) y value at x =
1.25 using a forward, parabolic (second-order) interpolation, (2) y value
at x = 3.7 using a backward, cubic (third-order) interpolation, and (3)
dy/dx value at x = 0 using a forward, third-order approximation.
10. Based on Equation 21, derive the forward-difference formulas for D
2
y
i
and D
3
y
i
.
11. Use the result of Problem 10 to compute D
2
y
2
and D
3
y
1
by adopting the
forward-difference terms in Table 1 as high as available.
x123 4 5
y 2 4 7 12 20
62
4
2
3++
−+
−+
()
x
x