This is documentation for an old release of NumPy (version 1.7.0). Read this page in the documentation of the latest stable release (version > 1.17).
Gauss-Laguerre quadrature.
Computes the sample points and weights for Gauss-Laguerre quadrature.
These sample points and weights will correctly integrate polynomials of
degree or less over the interval
with the
weight function
.
Parameters : | deg : int
|
---|---|
Returns : | x : ndarray
y : ndarray
|
Notes
The results have only been tested up to degree 100 higher degrees may be problematic. The weights are determined by using the fact that
where is a constant independent of
and
is the k’th root of
, and then scaling the results to get
the right value when integrating 1.