bundles / numpy 2.4.4 / numpy / polynomial / polynomial / polyline
function
numpy.polynomial.polynomial:polyline
Signature
def polyline ( off , scl ) Summary
Returns an array representing a linear polynomial.
Parameters
off, scl: scalarsThe "y-intercept" and "slope" of the line, respectively.
Returns
y: ndarrayThis module's representation of the linear polynomial
off + scl*x.
Examples
from numpy.polynomial import polynomial as P P.polyline(1, -1)✓
P.polyval(1, P.polyline(1, -1)) # should be 0
✗See also
Aliases
-
numpy.polynomial.Polynomial._line -
numpy.polynomial.polynomial.polyline