News for hackers. Stuff that matters.
Re:2+2=1? Playing with modular arithmetic by tikhonj on Sunday November 20, 2011 @02:41PM (#3258822)
Modular arithmetic is probably one of the coolest subjects we covered in high school, but we didn't spend enough time on it. I actually learned all about it from reading Simon Singh's The Code Book in sixth grade--it's a great introduction to cryptography and covers the basics of modular arithmetic to introduce RSA.

Towards the end of high school, I decided to play around with graphing equations as colors. I came up with a bunch of cool patterns including pretty much all of the ones in the article--the easiest way to make a function well-behaved across a color channel is to make it mod 255. Playing around with different functions this way is really fun; I suggest everybody try it.

If you want to draw pictures like this but don't want to write your own program for this, you can use mine: http://inst.eecs.berkeley.edu/~tikhon/draw.

Re:2+2=1? Playing with modular arithmetic by forinti on Sunday November 20, 2011 @05:23PM (#3259187)
Re:2+2=1? Playing with modular arithmetic by Gelada on Sunday November 20, 2011 @05:31PM (#3259212)
Beautiful work!
Re:2+2=1? Playing with modular arithmetic by ctchocula on Sunday November 20, 2011 @05:48PM (#3259244)
Pretty cool. I always thought fractals looked like Cthulhu. Also the part where Cthulhu is said to be a cosmic entity and bring subconscious anxiety to humans. Reminds me of fractals in math class.
Re:2+2=1? Playing with modular arithmetic by dhaivatpandya on Sunday November 20, 2011 @12:46PM (#3258557)
Pretty darn cool!