When I was young I used to love visualizing equations (hey, I lived in rural Shropshire! It was that or watch badgers).
This is something I played with when I was about 17. I still remember it, but I didn’t have the processing power or tools to make a video out of it. Now I do. The video’s at the bottom of the page, but bear with the maths stuff – I promise it’s REALLY easy.
Initial explanation
I had to write programs to work this stuff out. Fortunately Excel makes it all a bit easier now.
Create a spreadsheet with a sequence of numbers in row 1, and fill in column 1. This’ll be our x and y axis.
For the values we’ll use y√x.
So:
We’ll then drag that across to fill in our table.
Now unsurprisingly the numbers get bigger as x and y increase.
Also whenever x (the first row) is a square number (1,4,9,16 etc) then y√x is a whole number.
If we were to plot this as a graph we’d get a really boring graph.
Now the interesting bit
Let’s just concentrate on the decimal bits – let’s throw away the whole numbers.
Okay, something is going on, but it’s difficult to see what.
The codey bit
Instead I’m going to plot the graph using code.
I’m going to use white for close to a whole number and black for not near a whole number.
Also, because I want 1 pixel to be 1 number, I’m going to concentrate on a different range.
I’m going to look at the x axis between 2500 (50*50) and 2601 (51*51). Which will give me a strip 101 pixels wide.
We get some sort of spirally thing going on.
I’ve always thought that it looks a bit like smoke.
It’s actually easier to see on for the smaller values (this is used on my twitter profile http://twitter.com/AdamJTP click the image below for a better look).
So we can sort of see that the squares change as they move up.
Woo-hoo processing power!
I now have much more powerful computers than I had 20 years ago, so I was finally able to get my computer to spit out an animation of how the cells evolve and break up.
So now I’m going to take slices from that chart on the top right and animate them (I’ve never uploaded to YouTube – this could get messy).
YouTube – animated graph of decimal part of y sqrt(x)
Heh – I typed the wrong description in when I upload this image. Oh well.




