Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
11 steps · about 25 min
By the end you can
- Write a spring's acceleration as a line of Python: a = -k / m * x
- Step an oscillator with Euler–Cromer: v first, then x with the new v
- Compare a simulation with the exact x = A cos(ωt), ω = √(k/m)
- Check the energy, ½kx² + ½mv², stays the same
Who it is for: Anyone who has done units 5 and 6, and physics lessons 9.3, 9.4 and 9.6 (simple harmonic motion, the shadow of a circle, energy in an oscillation).
The steps
- The pull back, from physics lesson 9.3
- Left of the middle
- Euler–Cromer, as in unit 6
- Write the pull back
- Against the exact answer
- Simulation and exact
- Plain Euler again
- Watch plain Euler grow
- Energy as a check
- Check the energy
- Why test on a spring?
Discussion 0 comments
Log in to join the discussion.