bundles / numpy latest / numpy / polynomial / legendre / legline
function
numpy.polynomial.legendre:legline
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/legendre.py :227
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)✓
L.legval(-3, L.legline(3,2)) # should be -3
✗See also
Aliases
-
numpy.polynomial.Legendre._line -
numpy.polynomial.legendre.legline