Solving the Klein–Gordon equation and Dirac equation with ring-shaped non-spherical oscillator gives the exact bound state wavefunction and energy equation and the relations between non-relativistic Schrödinger equation, Klein–Gordon equation and Dirac equation with equal scalar and vector potentials.