Omniadisce

Computational physics 6.5: Drift or wobble, judging by energy

Lesson Beginner

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.

9 steps · about 20 min

By the end you can

  • Call a function that gives back several lists at once: ts, xs, Es = simulate(...)
  • Compare the three methods' energies on one graph
  • Find a bug with the energy check
  • Tell a method's error from a bug by halving dt

Who it is for: Anyone who has done lesson 6.4.

The steps

  1. Three lists at once
  2. Three energies, one graph
  3. It looked fine
  4. Energy finds bugs
  5. Find the bug
  6. Does flat mean right?
  7. Bug or method? Halve dt
  8. Which is it?
  9. Your checklist

Discussion 0 comments

Log in to join the discussion.

× Enlarged view