
94
Chapter 6
a derivative becoming nearly 0, so that weight would become stuck out
in left field. Keeping the function value away from extremes prevents
this occurrence. The exact point at which this limit is imposed is not
critical; the value of 10 shown here should be generally applicable.
In case there is extremely limited memory available, it is not
necessary to precompute f_d, the difference table. This would cut the
memory requirement in
half.
The difference could be computed as
M[i+1] -
f_f[i]
when it is needed in the interpolation. Having it
available in a table slightly speeds execution, but is certainly not
necessary.
One annoyanc ...