powered by
Return the value of the Chebyshev polynomial at specific points.
cheb(n, x)
Order of the polynomial, specified as a positive integer.
Point or points at which to calculate the Chebyshev polynomial
Polynomial of order x, evaluated at point(s) x.
x
The Chebyshev polynomials are defined by the equations:
Tn(x) = cos(n . acos(x), |x|<= 1 Tn(x) = cosh(n . acosh(x), |x|> 1
# NOT RUN { cp <- cheb(5, 1) cp <- cheb(5, c(2,3)) # }
Run the code above in your browser using DataLab