The Mandelbrot set
The set of complex numbers c for which the iteration z_{n+1} = z_n² + c (starting from z₀ = 0) does not diverge. First visualized by Benoit Mandelbrot in 1980, its boundary is a fractal of Hausdorff dimension 2.
Mandelbro is built on decades of research in fractal mathematics and computational optimization. These are the algorithms, publications, and techniques that make real-time deep zoom possible in the browser.
The set of complex numbers c for which the iteration z_{n+1} = z_n² + c (starting from z₀ = 0) does not diverge. First visualized by Benoit Mandelbrot in 1980, its boundary is a fractal of Hausdorff dimension 2.
Deep zoom renders one high-precision reference orbit at c_ref, then integrates each pixel as a small double-precision delta from that orbit—far cheaper than arbitrary precision per pixel.
Coefficients along the reference orbit approximate the perturbation as a polynomial in ε = c_pixel − c_ref, skipping early iterations when |ε| is tiny.
When the reference point stays in the set, Brent-style cycle detection spots repetition in the orbit (checked on double-precision samples) so the BigFloat loop can stop early; the orbit is then tiled to full length for workers.
Below about 10⁻¹³ viewport height in the complex plane, adjacent pixels differ by less than IEEE doubles can represent; the app switches pipelines and uses BigFloat for the reference orbit with controlled truncation.
Escape counts are turned into a continuous value using the normalized iteration formula so palette bands do not line up with integer iteration steps.
At shallower zoom, the app uses direct double-precision iteration with analytical tests for the main cardioid and period-2 bulb to skip known interior regions.