New in version 1.4.0.
numpy.polynomial.chebyshev
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
numpy.polynomial
Chebyshev(coef[, domain, window])
A Chebyshev series class.
chebdomain
chebzero
chebone
chebx
chebadd(c1, c2)
chebadd
Add one Chebyshev series to another.
chebsub(c1, c2)
chebsub
Subtract one Chebyshev series from another.
chebmulx(c)
chebmulx
Multiply a Chebyshev series by x.
chebmul(c1, c2)
chebmul
Multiply one Chebyshev series by another.
chebdiv(c1, c2)
chebdiv
Divide one Chebyshev series by another.
chebpow(c, pow[, maxpower])
chebpow
Raise a Chebyshev series to a power.
chebval(x, c[, tensor])
chebval
Evaluate a Chebyshev series at points x.
chebval2d(x, y, c)
chebval2d
Evaluate a 2-D Chebyshev series at points (x, y).
chebval3d(x, y, z, c)
chebval3d
Evaluate a 3-D Chebyshev series at points (x, y, z).
chebgrid2d(x, y, c)
chebgrid2d
Evaluate a 2-D Chebyshev series on the Cartesian product of x and y.
chebgrid3d(x, y, z, c)
chebgrid3d
Evaluate a 3-D Chebyshev series on the Cartesian product of x, y, and z.
chebder(c[, m, scl, axis])
chebder
Differentiate a Chebyshev series.
chebint(c[, m, k, lbnd, scl, axis])
chebint
Integrate a Chebyshev series.
chebfromroots(roots)
chebfromroots
Generate a Chebyshev series with given roots.
chebroots(c)
chebroots
Compute the roots of a Chebyshev series.
chebvander(x, deg)
chebvander
Pseudo-Vandermonde matrix of given degree.
chebvander2d(x, y, deg)
chebvander2d
Pseudo-Vandermonde matrix of given degrees.
chebvander3d(x, y, z, deg)
chebvander3d
chebgauss(deg)
chebgauss
Gauss-Chebyshev quadrature.
chebweight(x)
chebweight
The weight function of the Chebyshev polynomials.
chebcompanion(c)
chebcompanion
Return the scaled companion matrix of c.
chebfit(x, y, deg[, rcond, full, w])
chebfit
Least squares fit of Chebyshev series to data.
chebpts1(npts)
chebpts1
Chebyshev points of the first kind.
chebpts2(npts)
chebpts2
Chebyshev points of the second kind.
chebtrim(c[, tol])
chebtrim
Remove “small” “trailing” coefficients from a polynomial.
chebline(off, scl)
chebline
Chebyshev series whose graph is a straight line.
cheb2poly(c)
cheb2poly
Convert a Chebyshev series to a polynomial.
poly2cheb(pol)
poly2cheb
Convert a polynomial to a Chebyshev series.
chebinterpolate(func, deg[, args])
chebinterpolate
Interpolate a function at the Chebyshev points of the first kind.
The implementations of multiplication, division, integration, and differentiation use the algebraic identities [1]:
where
These identities allow a Chebyshev series to be expressed as a finite, symmetric Laurent series. In this module, this sort of Laurent series is referred to as a “z-series.”
A. T. Benjamin, et al., “Combinatorial Trigonometry with Chebyshev Polynomials,” Journal of Statistical Planning and Inference 14, 2008 (https://web.archive.org/web/20080221202153/https://www.math.hmc.edu/~benjamin/papers/CombTrig.pdf, pg. 4)