numpy.polynomial.laguerre.laggauss
-
numpy.polynomial.laguerre.laggauss(deg)
[source] -
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
-
-
degint
-
Number of sample points and weights. It must be >= 1.
-
- Returns
-
-
xndarray
-
1-D ndarray containing the sample points.
-
yndarray
-
1-D ndarray containing the weights.
-
Notes
New in version 1.7.0.
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.
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.polynomial.laguerre.laggauss.html