This function evaluates a cubic spline.
CSVAL — Value of the polynomial at X. (Output)
X — Point at which the spline is to be evaluated. (Input)
BREAK — Array of
length NINTV + 1
containing the breakpoints for the piecewise cubic representation.
(Input)
BREAK must be strictly
increasing.
CSCOEF — Matrix of size 4 by NINTV + 1 containing the local coefficients of the cubic pieces. (Input)
NINTV — Number of polynomial pieces. (Input)
Generic: CSVAL (X, BREAK, CSCOEF[,…])
Specific: The specific interface names are S_CSVAL and D_CSVAL.
Single: CSVAL (X, NINTV, BREAK, CSCOEF)
Double: The double precision function name is DCSVAL.
The routine CSVAL evaluates a cubic spline at a given point. It is a special case of the routine PPDER, which evaluates the derivative of a piecewise polynomial. (The value of a piecewise polynomial is its zero-th derivative and a cubic spline is a piecewise polynomial of order 4.) The routine PPDER is based on the routine PPVALU in de Boor (1978, page 89).
For an example of the use of CSVAL, see IMSL routine CSINT.
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |