Omniadisce

Computational physics 5.4: How small a step?

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.

10 steps ยท about 25 min

By the end you can

  • Say how Euler's error changes when dt is halved
  • Work out how many steps a simulation takes: the time รท dt
  • Explain why a loop while t < 1: with dt = 0.1 runs 11 times, and count steps instead
  • Choose dt by halving it until the answer stops changing

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

The steps

  1. Halve the step, halve the error
  2. A smaller error
  3. How many steps?
  4. A step too many
  5. Count the rounds
  6. Count steps, not time
  7. Round, not int
  8. No exact answer? Halve until it settles
  9. Halve until it settles
  10. Choosing dt

Discussion 0 comments

Log in to join the discussion.

× Enlarged view