<< Math Math CL_chebyshevPoly >>

CelestLab >> Math > CL_chebyshevEval

CL_chebyshevEval

Evaluation of Chebyshev polynomials (of first or second kind)

Calling Sequence

[y, ydot, y2dot] = CL_chebyshevEval(x, n, kind)

Description

Parameters

x:

Abscissae (1xN)

n:

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

kind:

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

y:

Values of Chebyshev polynomials (PxN)

pdot:

Values of polynomials first derivatives (PxN)

p2dot:

Values of polynomials second derivatives (PxN)

Authors

See also

Examples

// Evaluate Chebyshev polynomials (degrees 0 to 5) of first kind
x = linspace(-1,1,11);
y = CL_chebyshevEval(x, 0:5)

Report an issue
<< Math Math CL_chebyshevPoly >>