NumPy

Previous topic

numpy.polynomial.laguerre.lagtrim

Next topic

numpy.polynomial.laguerre.lag2poly

This is documentation for an old release of NumPy (version 1.18). Read this page in the documentation of the latest stable release (version 2.2).

numpy.polynomial.laguerre.lagline

numpy.polynomial.laguerre.lagline(off, scl)[source]

Laguerre series whose graph is a straight line.

Parameters
off, sclscalars

The specified line is given by off + scl*x.

Returns
yndarray

This module’s representation of the Laguerre series for off + scl*x.

See also

polyline, chebline

Examples

>>>
>>> from numpy.polynomial.laguerre import lagline, lagval
>>> lagval(0,lagline(3, 2))
3.0
>>> lagval(1,lagline(3, 2))
5.0