Last chance! 50% off unlimited learning
Sale ends in
Return the value of the Chebyshev polynomial at specific points.
cheb(n, x)
Polynomial of order x
, evaluated at point(s) x
.
Order of the polynomial, specified as a positive integer.
Point or points at which to calculate the Chebyshev polynomial
André Carezia, acarezia@uol.com.br.
Conversion to R by
Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
The Chebyshev polynomials are defined by the equations:
Tn(x) = cos(n . acos(x), |x|<= 1
Tn(x) = cosh(n . acosh(x), |x|> 1
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))
Run the code above in your browser using DataLab