Quantum Oscillator Applet

This applet uses a 4th order RK scheme to integrate the 1D Schroedinger equation for a harmonic oscillator potential. Even or odd parity solutions may be selected using the check box. You must choose a trial energy using the scrollbar. Only for the allowed quantum state energies will the wavefunction shown not diverge for large x. Can you find these energies ?

Here is the source code: