| Escape-Iterations |
Robert P. Munafo, 2008 Mar 17
It is the easiest to compute, but perhaps the least informative: It serves adequately at showing the mu-atoms, but only hints at the presence of the filaments by providing contours that generally tend to be spaced more closely near the filaments.
function escape-iterations param("Z"): complex param("max_iterations"): integer result: integer begin function declare C : complex declare Z : complex declare iterations : integer declare still_iterating : boolean let still_iterating = true let iterations = 0 let C = Z while (still_iterating) do let Z = Z * Z + C let iterations = iterations + 1 if (magnitude(Z) > escape_limit) then let still_iterating = false else if (iterations >= max_iterations) then let still_iterating = false end if end while let result = iterations end functionThe magnitude function computes the absolute value of the complex number Z.
There are other functions that can be used instead of escape iterations. The distance estimator function gives the best picture of what the Mandelbrot set "really" looks like.
See also DEM-dwell hybrid, binary decomposition, interior dwell.
This work is licensed under a
Creative Commons Attribution 2.5 License
.