WebCab XL Community Edition

Inter.CubicSpline Method 

Calculates the value of the cubic spline interpolation of a function in one real variable at a given point when the derivatives of the interpolation function at the end points are given.

public double CubicSpline(
   double[] TabPtsInX,
   double[] FnAtTabPts,
   double DerivAt0,
   double DerivAtn_1,
   double InterPt
);

Parameters

TabPtsInX
The array containing the values at which the function is tabulated, i.e. functionValuesAtTabulationPoints[i] = f(tabulationPointsInX[i]).
FnAtTabPts
An array of double of the values of the function evaluated at the interpolation points, i.e. functionValuesAtTabulationPoints[i] = f(tabulationPointsInX[i]), where f is the function being considered.
DerivAt0
The first derivative of the interpolation function at the point tabulationPointsInX[0].
DerivAtn_1
The first derivative of the interpolation function at the point tabulatedPointInX[n-1].
InterPt
The value of the `x-coordinate' at which the value of the cubic spline interpolation function is evaluated.

Remarks

Details

Given a function which is tabulated at the points tabulationPointsInX[0..n-1] which has elements was are monotonically increasing and takes the values functionValuesAtTabulationPoints[0..n-1] at those points, this methods returns the values of the cubic spline interpolation function evaluated at the given point interpolationPoint.

Remarks of this methods application

Excel Remarks

The full name of this function inside Excel is Ipola_Inter_CubicSpline.

Exceptions

Exception TypeCondition
InterpolationExceptionThrown when the input values do not meet the requirements mentioned above.

See Also

Inter Class | Interpolation Namespace | CubicSplinePre