relife.utils.quad_laguerre

relife.utils.quad_laguerre

relife.utils.quad_laguerre(func: Callable, a: numpy.ndarray, *args: numpy.ndarray, ndim: int = 0, deg: int = 100) numpy.ndarray[source]

Numerical integration over the interval [a,inf].

Parameters
  • func (Callable) – The function to be integrated.

  • a (float or ndarray) – The lower bound of integration.

  • *args (float or 2D array, optional) – Extra arguments required by the function func.

  • ndim (int, optional) – Number of dimensions of the func, by default 0.

  • deg (int, optional) – Degree of the Laguerre polynomials (see numpy.polynomial.laguerre.laggauss documentation), by default 100.

Returns

Numerical integration of func over the interval [a,inf].

Return type

ndarray

Notes

The numerical integration using Gauss-Laguerre quadrature of:

\[\int_a^{+\infty} f(x) \mathrm{d} x\]