Evaluation of Chebyshev polynomials (of first or second kind)
[y, ydot, y2dot] = CL_chebyshevEval(x, n, kind)
Evaluates Chebyshev polynomials of first or second kind at given abscissae.
The polynomials are defined as follows:
P0(x) = 1 (degree 0)
P1(x) = kind * x, with kind = 1 or 2 (degree 1)
Pn(x) = 2 * x * Pn-1(x) - Pn-2(x), for n >= 2
The function evaluates the polynomials of degree n at each abscissa x. y(i,j) is the value of the polynomial of degree n(i) at x(j).
The function optionally evaluates the first and second derivatives of the polynomials.
Abscissae (1xN)
(integer) Degrees of the polynomials in [0,100] (1xP)
(optional) 1 for first kind, 2 for second kind. Default is 1 (1x1)
Values of Chebyshev polynomials (PxN)
Values of polynomials first derivatives (PxN)
Values of polynomials second derivatives (PxN)
CNES - DCT/SB
// Evaluate Chebyshev polynomials (degrees 0 to 5) of first kind x = linspace(-1,1,11); y = CL_chebyshevEval(x, 0:5) |