Chebyshev polynomials
Return the value of the Chebyshev polynomial at specific points.
cheb(n, x)
n
: Order of the polynomial, specified as a positive integer.x
: Point or points at which to calculate the Chebyshev polynomialPolynomial of order x
, evaluated at point(s) x
.
The Chebyshev polynomials are defined by the equations:
If x
is a vector, the output is a vector of the same size, where each element is calculated as .
cp <- cheb(5, 1) cp <- cheb(5, c(2,3))
André Carezia, acarezia@uol.com.br .
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com .