Welcome, space traveler!

Mathematician + Developer + Cat DadMath, code, cats, books and faith. Since 2024.

Fractal Explorer

Shapes with detail at every scale. Dive into the Mandelbrot set until the picture is a trillion trillion times bigger than where you started, morph Julia sets by dragging a dot, watch Newton's method fight over the plane, or design a carpet that you can zoom into forever. Scroll or pinch to zoom, drag to pan, press Space to dive.

Explorer

Controls

Look
Fractal

The math

A fractal is a shape that does not get simpler when you magnify it. Every picture on this page comes from repeating one small rule and asking what happens in the long run. For most of them the rule acts on a complex number z=x+iy, a point of the plane, and the color of a pixel records the fate of the point that started there.

The Mandelbrot set. Pick a complex number c, start from z0=0 and repeat

zn+1=zn2+c.
If the sequence stays bounded forever, c belongs to the Mandelbrot set M (drawn dark). Otherwise it flies off to infinity, which is certain as soon as |zn|>2, and the pixel is colored by how long that took. To avoid visible steps the integer count is replaced by the smooth value
ν=n+1−log2⁡log⁡|zn|.
The boundary of M is as complicated as a curve can be: Shishikura proved that its Hausdorff dimension is exactly 2. It is also full of small copies of the whole set, each wrapped in its own decorations, and the deep dives in the picker end on some of them.

How deep can it go? A graphics card works with numbers of about 7 digits, so a direct calculation falls apart after zooming in a few thousand times. The Mandelbrot set, Burning Ship and Tricorn go far past that with perturbation theory. The orbit Zn of a single reference point C is computed on the processor with 240 binary digits. Every pixel is a nearby point c=C+δc, and instead of its orbit the card tracks only the difference δn=zn−Zn, which obeys

δn+1=2Znδn+δn2+δc.
Everything in this formula is either tiny or already known, so 7 digits are enough again. When a pixel's orbit passes closer to zero than its difference is large, |Zn+δn|<|δn|, the bookkeeping would lose accuracy, so the pixel restarts the reference orbit from its beginning and carries on. That one check removes the glitches this method is known for. The zoom stops near 1027, where even the differences run out of exponent.

The self-similar fractals have no limit at all. The camera does not store a position as a number but as the list of grid cells it has passed through, one digit pair per level, plus its position inside the current cell. Zooming in appends a digit and zooming out removes one, so nothing ever becomes too small to represent.

What you are looking at. The fractal is first computed as raw numbers at twice the screen resolution, then colored in a second step, so palettes, relief and glow respond instantly without recomputing anything. Relief treats the smooth iteration count as a height and lights it from the upper left. Silk stripes averages the direction of each point's orbit, and the two orbit-trap displays record how close an orbit ever comes to the axes or to zero.

References: Mandelbrot, "The Fractal Geometry of Nature" (1982); Peitgen and Richter, "The Beauty of Fractals" (1986); Milnor, "Dynamics in One Complex Variable" (2006); Falconer, "Fractal Geometry" (2014); K. I. Martin, "SuperFractalThing Maths" (2013).

Prime clock

2

a new prime every two seconds

Fractal Explorer - Keys

Scroll, + / -Zoom in and out
Drag, WASD, arrowsPan
PinchZoom on a touch screen
Double-clickZoom in on a point
SpaceStart or stop a dive
Shift-clickOpen the Julia set of a point
jSwitch between the set and its Julia set
[ / ]Less or more detail
cNext palette
hShift the colors
fNext fractal
rReset the view
sSave a PNG
?Show or hide this list