fn
hermite_polynomial_h
→Tensorhermite_polynomial_h(x: Tensor, n: int)Physicist's Hermite polynomial .
The physicists' Hermite polynomials are orthogonal on with weight and form the eigenfunctions of the quantum harmonic oscillator (in conjunction with the Gaussian envelope).
Parameters
xTensorArgument tensor; any floating-point dtype.
nintNon-negative polynomial degree.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Rodrigues formula and recurrence:
Starting values: , . Linked to
the probabilists' Hermite polynomials by . Raises ValueError for n < 0.
Examples
>>> import lucid
>>> from lucid.special import hermite_polynomial_h
>>> hermite_polynomial_h(lucid.tensor([-1.0, 0.0, 1.0]), n=3)
Tensor([4.0000, 0.0000, -4.0000])