Returns an array representing a linear polynomial.
Parameters : | off, scl : scalars
|
---|---|
Returns : | y : ndarray
|
See also
chebline
Examples
>>> from numpy import polynomial as P
>>> P.polyline(1,-1)
array([ 1, -1])
>>> P.polyval(1, P.polyline(1,-1)) # should be 0
0.0