orthax.legendre.legline
- orthax.legendre.legline(off, scl)Source
Legendre series whose graph is a straight line.
- Parameters:
off (scalars) – The specified line is given by
off + scl*x.scl (scalars) – The specified line is given by
off + scl*x.
- Returns:
y (ndarray) – This module’s representation of the Legendre series for
off + scl*x.
See also
orthax.polynomial.polyline,orthax.chebyshev.chebline,orthax.laguerre.lagline,orthax.hermite.hermline,orthax.hermite_e.hermelineExamples
>>> import orthax.legendre as L >>> L.legline(3,2) array([3, 2]) >>> L.legval(-3, L.legline(3,2)) # should be -3 -3.0