bundles / numpy 2.4.4 / numpy / polynomial / legendre / legline
function
numpy.polynomial.legendre:legline
Signature
def legline(off, scl)Summary
Legendre 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 Legendre series for
off + scl*x.
Examples
import numpy.polynomial.legendre as L L.legline(3,2)✓
array([3, 2])
L.legval(-3, L.legline(3,2)) # should be -3
✗np.float64(-3.0)
See also
Aliases
numpy.polynomial.Legendre._linenumpy.polynomial.legendre.legline