Popular Posts

Recent Comments

About

I'm Thomas Viktil. I like to play with all sorts of things. And this is where I write about the things I learn while playing.


Archive for the ‘math’ Category:

Actionscript: Outputting a grid using only one for-loop

Sometime this winter a friend of mine (Knut Urdalen) introduced me to a part of mathematics called modular arithmetic. Now that is a nifty little thing. In modular arithmetic, or modulus if you like, numbers reset themselves when reaching a given limit. Modulus is also known as "clock arithmetic", and the ...