138 INTERPOLATION THEORY
For
a five-place table, h =
.001,
t:
= .000005, and
l<f(x
)I
.::;;
5.42 X
10-
8
+ 5 X
10-
6
= 5.05 X
10-
6
The rounding error
is
the only significant error in using linear interpolation
in
a
five-place logarithm table. In fact, it would seem worthwhile to increase the
five-place table to a six-place table, without changing the mesh size
h.
Then
we
would have a maximum error for <f(x) of
5.5
X
10-
7
,
without any significant
increase in computation. These arguments on rounding error generalize to higher
degree polynomial interpolation, although the result on Max
IR(x)l
is
slightly
more complicated (see Problem
8).
None
of
the results of this section take into account new rounding errors that
occur in the evaluation of
p
11
(x).
These are minimized by results given in the next
section.
3.2 Newton
Divided
Differences
The Lagrange form of the interpolation polynomial can be used for interpolation
to a function given
in
tabular form; tables in Abramowitz and Stegun (1964,
chap. 25) can be used
to
evaluate the functions
l;(x)
more easily. But there are
other forms that are much more convenient, and they are developed in this and
the following section. With the Lagrange form, it
is
inconvenient to pass from
one interpolation polynomial
to
another of degree one greater. Such a compari-
son of different degree interpolation polynomials
is
a useful technique in deciding
what degree polynomial to
use.
The formulas developed in this section are for
nonevenly spaced grid points
{X;}.
As
such they are convenient for inverse
interpolation in a table, a point
we
illustrate later. These formulas are specialized
in Section
3.3 to the case of evenly spaced grid points.
We would like
to
write
Pn(x) =
Pn-1
+
C(x)
C ( x) = correction term (3.2.1)
Then,
in
general,
C(x)
is
a polynomial of degree n, since usually degree
(p
11
_
1
)
= n - 1 and degree (
p,)
=
n.
Also
we
have
Thus
Since
p
11
(x,)
=
j(x
11
),
we
have
from
(3.2.1) that
f(xn)-
P
11
:-l(xJ
a
11
=
~(------)~--(~------7)
XII-
Xo
••.
x,-
xn-1
i = 0,
...
, n - 1