lotus

previous page: 6a: What is the Mandelbrot set?
  
page up: Fractals FAQ
  
next page: 6c: Why do you start with z=0?

6b: How is the Mandelbrot set actually computed?




Description

This article is from the Fractal FAQ, by Ermel Stepp stepp@muvms6.mu.wvnet.edu with numerous contributions by others.

6b: How is the Mandelbrot set actually computed?

The basic algorithm is:
For each pixel c, start with z=0. Repeat z=z^2+c up to N times, exiting if
the magnitude of z gets large.
If you finish the loop, the point is probably inside the Mandelbrot set. If
you exit, the point is outside and can be colored according to how many
iterations were completed. You can exit if |z|>2, since if z gets this big it
will go to infinity. The maximum number of iterations, N, can be selected
as desired, for instance 100. Larger N will give sharper detail but take
longer.

 

Continue to:













TOP
previous page: 6a: What is the Mandelbrot set?
  
page up: Fractals FAQ
  
next page: 6c: Why do you start with z=0?