Compute the discrete energy levels E_n of a particle in a 1D infinite square well from well width and mass, for quantum-mechanics stationary-state problems and teaching demos.
粒子在一维势阱中的能级。