Evaluate the n-term Chebyshev series cs at x. Adapted from
a method presented in the paper by Broucke referenced below.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double dcsevl(
double x,
double[] cs,
int n
)
Parameters
- x Double
- Value at which the series is to be evaluated.
- cs Double
- cs array of n terms of a Chebyshev series. In evaluating
cs, only half the first coefficient is summed.
- n Int32
- number of terms in array cs.
Return Value
DoubleThe n-term Chebyshev series cs at x.
Remarks
References:
R. Broucke, Ten subroutines for the manipulation of Chebyshev series,
Algorithm 446, Communications of the A.C.M. 16, (1973) pp. 254-256.
L. Fox and I. B. Parker, Chebyshev Polynomials in
Numerical Analysis, Oxford University Press, 1968, page 56.
This is a translation from the Fortran version of SLATEC, FNLIB,
CATEGORY C3A2, REVISION 920501, originally written by Fullerton W., (LANL)
to C++.
See Also