Image89

Mandelbrot set

The Mandelbrot set

The Mandelbrot set is a shape in the complex plane drawn by a rule that fits on one line. Pick a complex number c, start from zero and repeat the same step again and again:

zn+1 = zn2 +c, z0=0

If the numbers stay near the origin forever, c belongs to the set; if they run away to infinity, it does not. Once a number is farther than 2 from the origin, it is sure to escape, so a computer can stop early:

|zn| >2 ⇒ zn→∞

History

Around 1918 the French mathematicians Pierre Fatou and Gaston Julia studied what happens when a function of a complex number is applied again and again. They had no computers to draw the pictures. In 1978 Robert Brooks and Peter Matelski printed the first rough image of the set, made of text characters. In 1980 Benoit Mandelbrot made pictures at IBM that showed the fine detail of the boundary. Adrien Douady and John Hubbard proved that the set is connected and named it after Mandelbrot. An article by A. K. Dewdney in Scientific American in August 1985 made the set widely known outside mathematics.

Interesting facts

How Image89 draws it

Every pixel center becomes c, and the step repeats until the number escapes or the iteration limit of the preset is reached, 256 by default. Points that never escape take the first color of the palette. Escaped points are colored by a smooth count, so colors change gradually instead of in bands:

μ=n+1− log2⁡ log⁡|zn|

The default view is centered at −0.75 and is 3.5 wide and 2.5 high. For other proportions the visible area grows, so the figure is never stretched. The preset is in the [types.mandelbrot] section of the config.

Examples