This HTML automatically generated with rman for NEMO
Table of Contents

Name

spline, seval - cubic spline fit interpolation and derivatives

Synopsis


void spline (coef, x, y, n)
double seval(x0, x, y, coef, n)
double spldif(x0, x, y, coef, n)
double spldif2(x0, x, y, coef, n)
double *coef, *x, *y, x0;
int n;

Description

spline is a routine to set up an array for a (cubic) spline fit interpolation.

seval returns the value of the interpolated function at the ordinate x0.

spldif returns the derivative of the function at the ordinate x0.

This cubic spline fit has been described by Forsythe, Malcolm & Moler in: "Computer Methods for Mathematical Computations", pp. 76-79. (see seval.for)

Bugs

No check done for points which fall outside the interval, i.e. it will return wildly extrapolated values.

See Also

tabspline(1NEMO)

Files

spline.c

Author

P.J. Teuben (C)

History


dark-ages    written                Josh?
sep-90        added spldif2()         PJT
jul-92          document written, recall last interval    PJT


Table of Contents