Enter oscillator quantum number n and frequency f; compute the energy E_n = ℏω(n+½), demonstrating equally spaced levels with zero-point energy, for molecular vibration and phonon analysis.
输入能级 n 与频率 f,求谐振子能量。