XLPack 6.1
Julia API Reference Manual
Loading...
Searching...
No Matches

◆ chebs()

function chebs ( c::Array{Float64}  ,
n::Integer  ,
x::Real   
)

Evaluation of Chebyshev series

Purpose
chebs evaluates the Chebyshev series by using Clenshaw algorithm.
f(x) = c0/2 + ΣciTi(x) (i = 0 to n-1) (-1 <= x <= 1)
Note that there is factor of 2 difference in the first coefficient c0 depending on the definition of the Chebyshev series.
Returns
Float64
The value of Chebyshev series.
Parameters
[in]cNumpy ndarray (1-dimensional, Float64, n)
Coefficients of Chebyshev series.
[in]nArgument n. (n >= 1)
[in]xArgument x.
Error handling
  • If n <= 0, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Note
  • If x < -1 or x > 1, this routine is much slower and recommended not to be used.
Reference
boost/math/special_functions