bundles / numpy 2.4.3 / numpy / polynomial / chebyshev / chebline
function
numpy.polynomial.chebyshev:chebline
Signature
def chebline(off, scl)Summary
Chebyshev series whose graph is a straight line.
Parameters
off, scl: scalarsThe specified line is given by
off + scl*x.
Returns
y: ndarrayThis module's representation of the Chebyshev series for
off + scl*x.
Examples
import numpy.polynomial.chebyshev as C C.chebline(3,2)✓
array([3, 2])
C.chebval(-3, C.chebline(3,2)) # should be -3
✗np.float64(-3.0)
See also
Aliases
numpy.polynomial.Chebyshev._linenumpy.polynomial.chebyshev.chebline