E01BGF evaluates a piecewise cubic Hermite interpolant and its first derivative at a set of points.
E01BGF evaluates a piecewise cubic Hermite interpolant, as computed by
E01BEF, at the points
, for
. The first derivatives at the points are also computed. If any point lies outside the interval from
to
, values of the interpolant and its derivative are extrapolated from the nearest extreme cubic, and a warning is returned.
If values of the interpolant only, and not of its derivative, are required,
E01BFF should be used.
The routine is derived from routine PCHFD in
Fritsch (1982).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
The computational errors in the arrays
PF and
PD should be negligible in most practical situations.
Not applicable.
The time taken by E01BGF is approximately proportional to the number of evaluation points,
. The evaluation will be most efficient if the elements of
PX are in nondecreasing order (or,
more generally, if they are grouped in increasing order of the intervals
). A
single call of E01BGF with
is more efficient than several calls with
.
This example reads in values of
N,
X,
F and
D, and calls
E01BGF to compute the values of the interpolant and its derivative at equally spaced points.