Omniadisce

Computational physics 10.2: Bisection, halving the interval

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.

11 steps ยท about 25 min

By the end you can

  • Find the midpoint of an interval, m = (a + b) / 2
  • Keep the half of the interval in which the sign changes
  • Repeat the halving in a loop, and plot how the midpoint settles
  • Work out how wide the interval is after n halvings: (b - a) / 2โฟ

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

The steps

  1. Halve it
  2. One halving by hand
  3. The midpoint
  4. Which half? In code
  5. One halving
  6. Again and again
  7. Twenty halvings
  8. How narrow?
  9. Width after n halvings
  10. A method that can't miss
  11. Bisection in two sentences

Discussion 0 comments

Log in to join the discussion.

× Enlarged view