| (9.17) |
However, a better expression results from keeping terms that are of consistent order in the expected error. Equation (9.12) can be rewritten as
| (9.18) |
where f'F is the first-order finite difference formula (9.6) evaluated at xi. Similarly,
| (9.19) |
If the third derivative is included in the interpolation formula, the third-derivative corrections to the finite difference formulas for the first and second derivatives should also be included. The result of regrouping the series to consistent order is the Gregory-Newton interpolation formula:
| (9.20) |
| (9.21) |
where the finite-difference formulas with subscripts F are the
forward-difference formulas with error limits of order O(
)
from Table 9.1, evaluated at xi. The backward-interpolation
formula is similar except backward difference formulas are used and terms
involving (x-xi+1)become (x-xi-1),
etc. Both of these interpolation formulas can be used for extrapolation
beyond the limits of the available data, but usually should be used only
for distances of about the data spacing.
Stirling's formula is an analogous formula evaluated with central-difference derivatives. It is usually preferable for interpolation within the range of a table. It is
| (9.22) |
| (9.23) |
where the derivatives with subscript C are the centered-difference
formulas with accuracy of order O(
)
from Table 9.1, evaluated at xi.