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
- Halve the step, halve the error
- A smaller error
- How many steps?
- A step too many
- Count the rounds
- Count steps, not time
- Round, not int
- No exact answer? Halve until it settles
- Halve until it settles
- Choosing dt
Discussion 0 comments
Log in to join the discussion.