WebCab XL Community Edition

Inter.CubicSplinePre Method 

Evaluates the cubic spline interpolation of a function at a point when the 2nd differentials at the tabulation points are known.

public double CubicSplinePre(
   double[] TabPtsInX,
   double[] FnAtTabPts,
   double[] SecondDiff,
   double InterPts
);

Parameters

TabPtsInX
The array containing the values at which the function is tabulated, i.e. functionValuesAtTabulationPoints[i] = f(tabulationPointsInX[i]).
FnAtTabPts
An array of doubles of the values of the function evaluated at the interpolation points, i.e. functionValuesAtTabulationPoints[i] = f(tabulationPointsInX[i]).
SecondDiff
This is an array containing the 2nd differential of the cubic spline which have been pre-calculated by the method cubicSpline2ndDifferential.
InterPts
The point at which the interpolation function is evaluated and returned. Note that this is the point at which we wished to find the value of the given function which we only knew at the tabulation points.

Remarks

The 2nd differentials can be evaluated using the method CubicSpline2ndDiff.

Details

Given the arrays tabulationPointsInX[0..n-1] and functionValuesAtTabulationPoints[0..n-1], which tabulate a function where the tabulationPointsInX is an array where the elements are monotonically increasing. Moreover, given the array secondDifferenttial[0..n-1], which is the output of the method CubicSpline2ndDifferential, and given a value of the interpolation points interpolationPoint, this method returns the value of the function at interpolationPoint according to the cubic-spline interpolation method.

Remarks of this methods application

Excel Remarks

The full name of this function inside Excel is Ipola_Inter_CubicSplinePre.

Exceptions

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

See Also

Inter Class | Interpolation Namespace | CubicSpline | CubicSpline2ndDiff