wavefunction and energy for particle on ring

implemented the solution of time independent Schrodinger equation for a particle confined to move on a ring and also the energy levels.
The input to wavefunction is the quantum number n and angle x.