6.8 KB · commit a9602da
In the preceding sections, we have derived some interpolation formulae of great practical importance. A natural question is: Which one of these formulae gives the most accurate result? (i) For interpolation at the beginning or end of a table of values, Newton's forward and backward interpolation formulae have to be used respectively. (ii) For interpolation near the middle of a set of values, the following are the choices: Stirling’s formula if −41≤p≤41, and Bessel’s formula for 41≤p≤43.
It can be shown that if the third differences are negligible, then Bessel's formula is about seven times more accurate than Stirling's formula. If the third differences are more than 60 in magnitude, then Everett's formula should be preferred.
x y=ex 0.61 1.840431 0.62 1.858928 0.63 1.877610 0.64 1.896481 0.65 1.915541 0.66 1.934792 0.67 1.954237 The table of differences is
x y=ex Δ Δ2 Δ3 Δ4 0.61 1.840431 0.018497 0.62 1.858928 0.000185 0.018682 0.000004 0.63 1.877610 0.000189 −0.000004 0.018871 0 0.64 1.896481 0.000189 0.000002 0.019060 0.000002 0.65 1.915541 0.000191 0.000001 0.019251 0.000003 0.66 1.934792 0.000194 0.019445 0.67 1.954237 Clearly, p=0.010.644−0.64=0.4. The third difference contribution to both Stirling's and Bessel's formulae is negligible, and using Stirling's formula, we obtain
y(0.644)=1.896481+0.420.018871+0.019060+20.16(0.000189)=1.896481+0.0075862+0.00001512=1.904082,while Bessel's formula gives
y(0.644)=1.896481+0.4(0.019060)+20.4(0.4−1)20.000189+0.000191=1.896481+0.0076240−0.0000228=1.904082.
Using Everett's formula, we find that
y(0.644)=0.6(1.896481)+20.6(0.36−1)(0.000189)+0.4(1.915541)+20.4(0.16−1)(0.000191)=1.1378886−0.000012096+0.7662164−0.000010696=1.904082.In all the above cases, the value obtained is correct to six decimal places. ◀
It is known from algebra that the nth degree polynomial which passes through (n+1) points is unique. Hence the various interpolation formulae derived here are actually only different forms of the same polynomial. It, therefore, follows that all the interpolation formulae should give the same functional value. This is illustrated in the above example where we found that the interpolated value of 0.644 is 1.904082 regardless of which formula is used.
x y=e−x Δ Δ2 Δ3 Δ4 1.72 0.1790661479 −17817379 1.73 0.1772844100 177285 −17640094 −1762 1.74 0.1755204006 175523 13 −17464571 −1749 1.75 0.1737739435 173774 22 −17290797 −1727 1.76 0.1720448638 172047 15 −17118750 −1712 1.77 0.1703329888 170335 −16948415 1.78 0.1686381473 It should be noted that in writing the differences in the above table, the zeros between the decimal point and the first significant digit to its right are omitted. Thus, in the column of second differences, the number 173774 should be taken as 0.0000173774 in the computations. To compute y(1.7475), we choose x0=1.74 and xp=1.7475 so that p=3/4. We shall obtain the solution by using both Bessel's and Everett's formulae. (i) If we use Bessel's formula, the third differences need to be taken into account since they exceed 60 units in magnitude. Hence Bessel's formula gives
y(1.7475)=0.1755204006−43(0.0017464571)+2(3/4)(3/4−1)20.0000175523+0.0000173774=0.1755204006−0.00130984284−0.00000163734+0.00000000137=0.1742089218, correct to ten decimal places.(ii) On the other hand, if we use Everett's formula up to second differences only, we obtain
y(1.7475)=41(0.1755204006)+6(1/4)(1/16−1)(0.0000175523)+43(0.1737739435)+6(3/4)(9/16−1)(0.0000173774)=0.04388010015−0.000000068564+0.13033045764−0.000000095033=0.1742089218, as before.◀
This example verifies the result of Section 3.7.5 that Everett's formula turncated after second differences is equivalent to Bessel's formula truncated after third differences. When the fourth difference contribution becomes significant (i.e. when they exceed 20 units in magnitude), Everett's formula will be easier to apply since it uses only the even order differences.