applets.

Mandelbrot Set

← All apps

About the Mandelbrot Set

Take a number c on the plane of complex numbers, start at z = 0 and keep doing z → z² + c. For some c, z stays close to home for ever; for others it runs off to infinity. The Mandelbrot set is every c that stays: the black shape. The colours outside show how quickly each point runs away.

Click to zoom in on a point (Shift-click zooms out), drag a box round what you want to see, or scroll. On a phone, pinch to zoom, drag to move and tap to zoom in. Right-drag (or the arrow keys) moves the view. BACK retraces your steps. The finder eyepiece shows the Julia set for the point under the pointer (on a phone, press and hold); EXPLORE THIS JULIA SET opens it full size. In ORBIT mode (or Alt-click) a click draws the path z takes from 0. COPY LINK copies a link to exactly this view.

Keys: + − zoom, arrows move, B back, R reset, J Julia set and back, O orbit mode, Esc clear the orbit.

THE STORY

Pierre Fatou and Gaston Julia studied what happens when you repeat a function like z² + c, around the end of the First World War; Julia's long memoir of 1918 won the French Academy's Grand Prix. They had no computers, so they could only imagine the shapes. They did prove the key fact this app shows in the finder: the Julia set for c is all in one piece exactly when the orbit of 0 stays bounded, that is, when c is in the Mandelbrot set.

Robert Brooks and Peter Matelski printed a rough picture of the set in 1978. Benoit Mandelbrot, working at IBM, made much better pictures and published them in 1980; his early printouts showed what looked like separate islands. In 1982 Adrien Douady and John Hubbard proved the set is all one piece, the islands joined by threads too fine to draw, and named it after Mandelbrot. A. K. Dewdney's Computer Recreations column in Scientific American (August 1985) showed readers how to draw it on a home computer, and the set became famous.

Some of its surprises: in 1991 Dave Boll found π in Seahorse Valley (at c = −0.75 + εi, the number of steps to escape times ε gets closer and closer to π). In 1991 Mitsuhiro Shishikura proved the edge is so wrinkled that its dimension is 2, as much as a filled area. The area of the set is about 1.5066, but nobody knows a formula for it. Count the spokes on the antenna of a bulb and you have its period: how many values z cycles through for a c inside it (try ORBIT on one).

HOW IT WORKS

Each pixel is a value of c. The app runs z → z² + c until |z| passes 256 or the step limit is reached (points that never escape are coloured black). The limit rises as you zoom, because the detail near the edge takes longer to escape; the Steps slider sets it by hand. Plain step counts give flat stripes, so the colour uses the "smooth" count n − log₂(log|z| ÷ log 256), which slides continuously from one step to the next. Points in the big cardioid and the round bulb on its left are recognised by formula and skipped, and an orbit that comes back to where it was is known to be trapped. The picture is shared out in strips between several Web Workers (one per processor core), so the page never freezes, and a new view cancels the old one.

The numbers are ordinary computer "doubles", about 16 significant digits. Past a zoom of around ten trillion, neighbouring pixels can no longer be told apart and the picture breaks into blocks; the app says so and stops there. Deep-zoom programs go further with many-digit arithmetic and perturbation tricks. A Julia set uses the same rule, except c stays fixed and each pixel is the starting z.

FURTHER WATCHING AND READING

JULIA SET FOR c
−0.123 + 0.745i
REAL−0.765
IMAGINARY0
ZOOM×1
STEPS250
RENDER–

PLACES TO VISIT

EYEPIECE

CLICK TO

COLOUR AND DEPTH

250

UNDER THE POINTER

c = −0.765000 + 0.000000i

Move over the screen to see what z does for each point.