Omniadisce

Computational physics 10.7: A simulation as the function

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.

8 steps ยท about 20 min

By the end you can

  • Wrap a simulation in a function that returns one number
  • Find the input that makes the simulation give a chosen result: the root of result - target
  • Compare the answer with air resistance to the answer without
  • Say what limits how precise the answer is

Who it is for: Anyone who has done lesson 10.6, and lesson 5.6 (a fall until it lands).

The steps

  1. A whole simulation as a function
  2. The fall as a function
  3. Turn the question round
  4. How high to drop it?
  5. Lower, with air
  6. How precise?
  7. The cost
  8. Running questions backwards

Discussion 0 comments

Log in to join the discussion.

× Enlarged view