Returns the Energy of the One-dimensional harmonic oscillator
The unit of the returned value matches the unit of hw, since the energy is calculated as:
E_n = hbar * omega*(n + 1/2)
Examples
>>> from sympy.physics.qho_1d import E_n
>>> from sympy import var
>>> var("x omega")
(x, omega)
>>> E_n(x, omega)
hbar*omega*(x + 1/2)
Returns the wavefunction psi_{n} for the One-dimensional harmonic oscillator.
Examples
>>> from sympy.physics.qho_1d import psi_n
>>> from sympy import var
>>> var("x m omega")
(x, m, omega)
>>> psi_n(0, x, m, omega)
(m*omega)**(1/4)*exp(-m*omega*x**2/(2*hbar))/(hbar**(1/4)*pi**(1/4))