Legendre series whose graph is a straight line.
Parameters : | off, scl : scalars
|
---|---|
Returns : | y : ndarray
|
See also
polyline, chebline
Examples
>>> import numpy.polynomial.legendre as L
>>> L.legline(3,2)
array([3, 2])
>>> L.legval(-3, L.legline(3,2)) # should be -3
-3.0