Python and physics: Harmonic oscillator graphically up to n= 4?

I'd like to review the lectures I took at university. We were on the topic of harmonic oscillators, and I'd like to create a plot that looks something like this. However, up to n=4. So once the stationary (psi_n(x)) and once the probability of residence |psi_n(x)|^2 The parable is meant to represent the potential. The…

Different measurement with spring pendulum?

Hello everyone, We're currently studying harmonic oscillations in our advanced physics class. I'm currently asked to explain how the three different series of measurements for the same spring could have occurred. Below you can see the series of measurements, and further down I've also presented them graphically. Could someone please explain this to me? I…