polynomial.polynomial.
polyline
Returns an array representing a linear polynomial.
The “y-intercept” and “slope” of the line, respectively.
This module’s representation of the linear polynomial off + scl*x.
off + scl*x
See also
numpy.polynomial.chebyshev.chebline
numpy.polynomial.legendre.legline
numpy.polynomial.laguerre.lagline
numpy.polynomial.hermite.hermline
numpy.polynomial.hermite_e.hermeline
Examples
>>> from numpy.polynomial import polynomial as P >>> P.polyline(1,-1) array([ 1, -1]) >>> P.polyval(1, P.polyline(1,-1)) # should be 0 0.0
numpy.polynomial.chebyshev