Evaluates the coefficients of the interpolating polynomial in 1 variable when the polynomial is known as a set of tabulation points.
f is the interpolation polynomial then we have f(tabulatedValues[i]) = polynomialValues[i]; where polynomialValues[i] is the value of the interpolation polynomial at the tabulated values tabulatedValues[i].polynomialValues[0], corresponds to the value of the interpolating polynomial at the first tabulation point tabulatedValues[0], and the second values polynomialValues[1] corresponds to the value of the interpolating polynomial at the second tabulated point tabulatedValues[1], and so on.A array where the first term is the value of the constant term of the polynomial, the second term of the coefficient for the 1st order term of the polynomial (i.e. x, the third term is the coefficient of the 2nd order term of the polynomial (i.e. x2), and so on.
Remark: This method is essentially a faster but less stable version of CoefficientsInterpolatingPolynomialStable.
If we are given a set of n points on which the
interpolation function is known then this method evaluates the n coefficients
ci of the interpolation function c0 + (c1 * x) + (c_2 * x2)+....
More explicitly, given a set of tabulation points x = {x[i]: i=0,...,n-1}
and y = { y[i]:i=0,...,n-1 }
which defines a function by y[i] = f(x[i]). This method returns an array of
doubles which are the coefficients of the interpolating polynomial where the first term
of the array corresponds to the 0th order term, the second term corresponds to the 1st order
term (i.e. x's coefficient) and so on.
The method CoefficientsInterpolatingPolynomialStable differs slightly from this method which is more direct, and faster by a power of the number of tabulation points used. However, we have found this approach to be less stable.
Remark: If the two arrays have different lengths the shorter one will be used as reference.
| Exception Type | Condition |
|---|---|
| InterpolationException | Thrown when the input values do not meet the specified requirements. |
Interpolation Class | Interpolation Namespace