fn
laguerre_polynomial_l
→Tensorlaguerre_polynomial_l(x: Tensor, n: int)Laguerre polynomial .
The (simple) Laguerre polynomials are orthogonal on with weight and appear as the radial eigenfunctions of the hydrogen atom, as the basis of Gauss-Laguerre quadrature, and in survival-analysis kernels.
Parameters
xTensorArgument tensor; any floating-point dtype. Customarily
evaluated on .
nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Recurrence:
The leading coefficient is , and
for every n. Raises ValueError for
n < 0.
Examples
>>> import lucid
>>> from lucid.special import laguerre_polynomial_l
>>> laguerre_polynomial_l(lucid.tensor([0.0, 1.0, 2.0]), n=2)
Tensor([1.0000, -0.5000, -1.0000])