Create Chebyshev polynomial
y=chebyshev_poly(n)
a 1-by-1 matrix of doubles, integer value, n>=0.
a polynomial
Create a Chebyshev polynomial of degree n at point x.
The Chebyshev polynomials are orthogonals with respect to the scalar product :
where w(x) is the Chebyshev weight.
To evaluate it, we can use the horner function, but hermite_eval might be faster and more accurate.
for n=0:10 y=chebyshev_poly(n); disp(y) end | ![]() | ![]() |
http://en.wikipedia.org/wiki/Chebyshev_polynomials