numpy.polynomial.chebyshev.chebline#

polynomial.chebyshev.chebline(off, scl)[原始碼]#

Chebyshev series whose graph is a straight line.

參數:
off, sclscalars

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

回傳值:
yndarray

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

範例

>>> 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