The famous mandelbrot set. The reason for uploading this is that it is a short and simple implementation using meshgrid and is updated for use with faster processors.
This code ran, but I can't see anything that looks like the Mandelbrot set in the output. It's just a black grid.
Change the isnan() to isinf() and it generates the image.
hi levent d,
i only tested on my 2.2Ghz machine so i assumed that was the baseline, what i would suggest is lowering num from 440 to say 200,i.e. decrease the resolution a little. the point was to get a simple working implementation. To get a 'fast' mandelbrot generator you need to use a compiled language, some programs can be found on wikipedia's page- e.g. quickman.
It does not work normally @ p-III 800 Mhz, 256 MB ram
It takes around 3 minutes to render on the pentium III i tested on (just executing 'mandelbrot'-no arguments).
When zooming in you see a lot of white space.
When zooming back out, you don't see the full set, but around 80% of it.
Anyway, good work and thank you for posting!
modified email address on line 4.
update for BSD license