[toronto-lisp] Mandelbrot set renderer, in memory of Benoit Mandelbrot

Vish Singh vishvajitsingh at gmail.com
Mon Oct 18 06:04:48 UTC 2010


I wrote a quick Mandelbrot set renderer in Clojure, after hearing the
sad news that the great mathematician Benoit Mandelbrot passed away
this weekend. Watch his TED talk
(http://www.ted.com/talks/benoit_mandelbrot_fractals_the_art_of_roughness.html)
and you will find it hard to feel as if you didn't know him.

It was simple and fun to write, as Clojure has support for complex
numbers. It took me a while to figure out how to turn that support on,
though.
It takes less than a minute to run, and can surely be optimized.

http://github.com/vishsingh/mandelbrot

The output of the program looks like this:
http://github.com/vishsingh/mandelbrot/raw/master/result.png

It can surely be extended quite easily to zoom in to smaller parts of the set.

Vish




More information about the toronto-lisp mailing list