Chebyshev Module (numpy.polynomial.chebyshev)

New in version 1.4.0.

This module provides a number of objects (mostly functions) useful for dealing with Chebyshev series, including a Chebyshev class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its “parent” sub-package, numpy.polynomial).

Chebyshev Class

Chebyshev(coef[, domain, window]) A Chebyshev series class.

Basics

chebval(x, cs) Evaluate a Chebyshev series.
chebval2d
chebval3d
chebgrid2d
chebgrid3d
chebroots(cs) Compute the roots of a Chebyshev series.
chebfromroots(roots) Generate a Chebyshev series with the given roots.

Fitting

chebfit(x, y, deg[, rcond, full, w]) Least squares fit of Chebyshev series to data.
chebvander(x, deg) Vandermonde matrix of given degree.
chebvander2d
chebvander3d

Calculus

chebder(cs[, m, scl]) Differentiate a Chebyshev series.
chebint(cs[, m, k, lbnd, scl]) Integrate a Chebyshev series.

Algebra

chebadd(c1, c2) Add one Chebyshev series to another.
chebsub(c1, c2) Subtract one Chebyshev series from another.
chebmul(c1, c2) Multiply one Chebyshev series by another.
chebmulx(cs) Multiply a Chebyshev series by x.
chebdiv(c1, c2) Divide one Chebyshev series by another.
chebpow(cs, pow[, maxpower]) Raise a Chebyshev series to a power.

Quadrature

chebgauss
chebweight

Miscellaneous

chebcompanion(cs) Return the scaled companion matrix of cs.
chebdomain
chebzero
chebone
chebx
chebtrim(c[, tol]) Remove “small” “trailing” coefficients from a polynomial.
chebline(off, scl) Chebyshev series whose graph is a straight line.
cheb2poly(cs) Convert a Chebyshev series to a polynomial.
poly2cheb(pol) Convert a polynomial to a Chebyshev series.