MATH 417 Lecture 2

From Notes
Jump to navigation Jump to search

« previous | Thursday, January 16, 2014 | next »


Floating Points

64 bits

0 1 0 0 0 0 0 0 0 0 1 1 1 0 1 1 1 0 0 1 0 0 0 1 0 ... 0
(sign) (exponent; 11 bits) (fractional part; 52 bits)

Bisection Algorithm

Binary search for a zero point between and by checking sign of midpoints.

Section 2.2: Fixed Point Iteration

Banach 1923

Given equation , rewrite as a function

For example is rewritten as .


  1. Take
  2. Iterate: for


if converges to as , then is a fixed point such that .

This is only useful if you know an interval where a fixed point must exist.

e.g. choosing causes the iteration to diverge to .


Theorem 2.3

Given , where and is continuous on ,

  1. If for any , then there exists a such that .
  2. If there exists a such that for all , then is unique.

Proof.

  1. Rolle's Theorem with .
    1. If or , we're done.
    2. Otherwise, , then by Rolle's theorem, for some .
  2. Assume that are both fixed points. Then . Contradiction.
quod erat demonstrandum

Example

. Find zero :

  • for

Find a ...

"Stupid change": (). This is because is not within .

Another try: . May work, but prof. doesn't like it.

Yet another try: . Observe this function is within . More importantly, for . In fact, . Therefore, will converge:

Theorem. If ; for all ; is any number in ; and , then

  1. for

Proof.

After interations, we have . This proves (1).


Now if we have , then

For any consecutive and , we get

Thus the distance above can be better estimated as

This proves (2).

quod erat demonstrandum

In many cases (for good guesses), the second estimate will be better than the first

Goal