<< CL_chebyshevEval Math CL_cor2cov >>

CelestLab >> Math > CL_chebyshevPoly

CL_chebyshevPoly

Chebyshev polynomials (of first or second kind)

Calling Sequence

[p, pdot, p2dot] = CL_chebyshevPoly(n [,kind])

Description

Parameters

n:

(integer) Degrees of the polynomials in [0,100] (PxQ)

kind:

(optional) 1 for first kind, 2 for second kind. Default is 1 (1x1)

p:

Chebyshev polynomials (same size as n)

pdot:

First derivative of the polynomials (same size as p)

p2dot:

Second derivative of the polynomials (same size as p)

Authors

See also

Examples

// Generate Chebyshev polynomials (degree 0 to 5, first kind) and plot them
n = 0:5;
p = CL_chebyshevPoly(n);
t = linspace(-1,1,100);
scf();
plot(t, horner(p',t));
CL_g_legend(gca(), "degree: " + string(n));

Report an issue
<< CL_chebyshevEval Math CL_cor2cov >>