loading...
Orbit of 0 under z -> z^n + c at the pointer: |z_k| against k (red line = escape radius 2)
running...
The science
Escape-time fractals. Iterate z -> z^n + c from z = 0. If |z| ever exceeds 2 (for n = 2; the radius is 2^(1/(n-1)) in general) the orbit escapes to infinity; otherwise it is bounded. The Mandelbrot set is the set of c whose orbit of 0 stays bounded. For a fixed c the Julia set is the boundary of the set of starting points z that stay bounded; it is connected exactly when c is in the Mandelbrot set.
Smooth colouring. The colour uses the continuous escape count mu = k + 1 - log( log|z_k| / log R ) / log n so the bands blend smoothly instead of showing integer steps.
Exact facts you can check. The main cardioid is c = u/2 - u^2/4, |u| < 1, with area 3 pi / 8; the period-2 disc is |c + 1| < 1/4 with area pi / 16; the area of the whole set is about 1.5066. The point c = i is a Misiurewicz point: its orbit i, -1+i, -i, -1+i, -i ... is pre-periodic, which is why its Julia set is a tree-like dendrite.
The Mandelbulb. There is no 3-D analogue of complex multiplication, so Daniel White and Paul Nylander (2009) defined a power map on triplex numbers: with r = |v|, theta = arccos(z/r), phi = atan2(y, x),
v^n = r^n ( sin(n theta) cos(n phi), sin(n theta) sin(n phi), cos(n theta) ), v -> v^n + c, c = the starting point
The bulb is the set of points that stay bounded. On the z axis the map reduces to the real map t -> t^n + c, whose bounded interval ends at the tangent bifurcation c* = (1 - 1/n) n^(-1/(n-1)) = 0.6501 for n = 8; the page checks this against a bisection with the triplex iteration. The rendering uses the distance estimate DE = 0.5 r ln r / |dr| with dr -> n r^(n-1) dr + 1.
Honest simplifications. (1) The triplex map is one of many possible 3-D generalisations and is not conformal. (2) Fractional powers use the principal branch of the argument, so a visible cut appears along the negative real axis. (3) Double precision limits the 2D zoom to about 1e13; in the 3D page single precision on the GPU limits the zoom to a few thousand. (4) Iteration counts are capped; points near the boundary that need more iterations are drawn as inside. (5) The 2D panels are computed progressively, coarse first.
Checks run in the page. The area of the Mandelbrot set from a 600 x 600 grid against 1.5066; random points that the cardioid and period-2 formulas call inside but the iteration lets escape (must be none); the Misiurewicz orbit of c = i; the bulb z extent in closed form against bisection; and the lower-bound property of the distance estimate used for rendering the 3-D bulb.