relife.utils.shifted_laguerre
relife.utils.shifted_laguerre¶
- relife.utils.shifted_laguerre(func: Callable, a: numpy.ndarray, *args: numpy.ndarray, ndim: int = 0, deg: int = 100) numpy.ndarray [source]¶
Shifted Gauss-Laguerre integration.
- 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) – Degree of the Laguerre polynomials (see numpy.polynomial.laguerre.laggauss documentation), by default 100.
- Returns
The Gauss-Laguerre integration of the function func from a to infinity.
- Return type
ndarray
Notes
It is the numerical integration of:
\[\int_a^{+\infty} f(x) e^{-x} \mathrm{d} x\]