### Optimization of Mandelbrot calculation

2009-04-30 23:14:49 GMT

Hi, Im using Maxima at my school and I like to use it teaching complex numbers and chaos theory. Therefore I like to show how to calculate and display the Mandelbrot-Set. I already got it working so far (you can look at it below). The only problem i have is that the execution gets very slow (and sometimes takes forever), when I choose a lower value for the parameter "resolution" (e.g. 0.01 instead of 0.02). Is there anything I could do to optimize this, or any setting i could change to run this faster? BTW... Im using wxMaxima on Windows. Any suggestions welcome;) Cheers Maxx mandel(reMin, reMax, imMin, imMax, resolution, iterations):=block( [reZ, imZ, absZ, i, pixels, reTemp], pixels:[[0,0]], for x:reMin step resolution thru reMax do [ for y:imMin step resolution thru imMax do [(Continue reading)