Last time: | Next time: |
Today:
The most important equation in the world (Physicist Charles Shirkey, BGSU): \[ f(x)=0 \] How would you do it?
Today we talk about two methods:
The example presented is remarkable. They say that (except in base 2) \[ 0.5(a+b) \textrm{ is not as accurate as } a + 0.5(b-a) \]
And they give an example to demonstrate it: four-digit floating-point arithmetic with the round-to-even rule, where $a=5.001$ and $b=5.003$.
This has the terrible consequence of actually letting our root out of the box. Once we have a box around our solution, we don't want to let it out!
In this case we're making small changes in a very good approximation ($a$), and we don't want to mess up our good work so far.
In fact, however, it's nice to know that you get one extra binary digit with each iteration of bisection. Why is that so?
If you need to, you can cheat and use the Mathematica code link below. Notice, however, that the algorithm as implemented has problems that our authors warn us against! It also doesn't use the same stopping criterion....
You can also use Mathematica's FindRoot to check your work.
I'd like to go through the geometric sense of Newton's method, and derive the formula on p. 82.
If we have time, we'll then see how the Babylonian method for finding square roots is an application of Newton's Method....