Generating the Mandelbrot Set

Clear the system:

[Graphics:mandelgr2.gif][Graphics:mandelgr1.gif]

Load the color definitions:

[Graphics:mandelgr2.gif][Graphics:mandelgr3.gif]

The generating function:

[Graphics:mandelgr2.gif][Graphics:mandelgr4.gif]

Function to calculate the convergence of the generating formula (the output is negative for purely asthetic reasons):

[Graphics:mandelgr2.gif][Graphics:mandelgr5.gif]

This is a compiled version of the generating function that can be used when computational speed is an issue, at the cost of reduced flexibility:

[Graphics:mandelgr2.gif][Graphics:mandelgr6.gif]

Plot the function vs x at various y values, first for the uncompiled version. The calculation time is also shown.

[Graphics:mandelgr2.gif][Graphics:mandelgr7.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr8.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr9.gif]

The same plot, but with the compiled version. Note the speed difference.

[Graphics:mandelgr2.gif][Graphics:mandelgr10.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr11.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr12.gif]

A 3D plot over the complex plane, using the compiled version:

[Graphics:mandelgr2.gif][Graphics:mandelgr13.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr14.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr15.gif]

A view from underneath:

[Graphics:mandelgr2.gif][Graphics:mandelgr16.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr17.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr18.gif]

The "normal" contour plot view:

[Graphics:mandelgr2.gif][Graphics:mandelgr19.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr20.gif]
[Graphics:mandelgr2.gif][Graphics:mandelgr21.gif]