Thursday, June 21, 2007

The Geometry of Irregular Forms: Part 3

(Introduction to this series is at this link.)

Let's return to my experiment with the calculator's square root key. Although I didn't know it at the time, what I had stumbled upon was an iterative algorithm. That's fancy words for a process that's kind of like hitting a nail with a hammer. Every time you hit the nail, you drive it into the two-by-four a little bit. That's one iteration of the process. Then you take the output of that iteration (a nail that's part-way into the board), and you do the same thing to it. You do this over and over, until a terminating condition is met -- in this case, when the nail is all the way into the board.

When you start an iterative algorithm, you need an initial condition. From my square root experiment, 0.0000001 and 99999999 are examples of initial conditions. If we take the variable x to be the number on the calculator's display, then the initial condition is x0.

For the first iteration, we plug x0 into the process, and it yields the next x, or x1. And the second iteration of the process yields x2, and so on. In general:
the next x = do-something-to( the current x ), or
xn+1 = do-something-to( xn)

In my square root experiment, the "do-something-to" is the square root function. In the hammer-and-nail example, the "do-something-to" is striking the nail with the hammer. Using the xn notation, the sequence from Part 1 looks like:
x0 = 0.0000001
x1 = 0.0003162
x2 = 0.0177828
x3 = 0.1333521
x4 = 0.3651741
x5 = 0.6042964
x6 = 0.7773650
x7 = 0.8816831
x8 = 0.9389798
... 15 more ...
x24 = 0.9999990
x25 = 0.9999995
x26 = 0.9999998
x27 = 0.9999999
x28 = 0.9999999
x29 = 1

After hitting the square root key 29 times, I arrived at a terminating condition -- the calculator read 1, and the value was no longer changing -- and so I stopped.

2 Comments:

Blogger Toto said...

Good, we were afraid the calculator might explode sending nasty chemicals thru the atmosphere.

Do you think if we sniffed the stuff we can get a cheap high?

6/26/2007 11:19:00 PM  
Blogger Sickboy said...

wow, either you have too much time on your hands or I'm really stupid.

I vote for the 2nd part.

7/10/2007 08:44:00 PM  

Post a Comment

<< Home