Evaluates the n-term Chebyshev series cs at x.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static double dcsevl(
double x,
double[] cs,
int n
)
Parameters
- x Double
- Value at which the series is to be evaluated.
- cs Double
-
Array of n terms of a Chebyshev series. In evaluating the series, only half the first coefficient is summed.
- n Int32
- Number of terms in array cs.
Return Value
DoubleThe value of the
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