NumPy

Previous topic

numpy.polynomial.chebyshev.chebtrim

Next topic

numpy.polynomial.chebyshev.cheb2poly

This is documentation for an old release of NumPy (version 1.18). Read this page in the documentation of the latest stable release (version 2.2).

numpy.polynomial.chebyshev.chebline

numpy.polynomial.chebyshev.chebline(off, scl)[source]

Chebyshev series whose graph is a straight line.

Parameters
off, sclscalars

The specified line is given by off + scl*x.

Returns
yndarray

This module’s representation of the Chebyshev series for off + scl*x.

See also

polyline

Examples

>>>
>>> import numpy.polynomial.chebyshev as C
>>> C.chebline(3,2)
array([3, 2])
>>> C.chebval(-3, C.chebline(3,2)) # should be -3
-3.0