For a particle in a box, we have been explained that the wave function is like a standing wave. Then we wrote:- λ = 2L/n where λ is the wavelength of the nth energy state. But a moving particle is considered as a wave packet and so does not have an unique wavelength. Then, how are we determining energy for nth state using this unique λ. There must be an uncertainity in energy too.