Mathematics · Simulator 055
Fractals repeat their shape at every scale. Zoom into the Mandelbrot set, morph a Julia set by moving its parameter, grow a Koch snowflake whose perimeter keeps lengthening, and branch a fractal tree. Change the depth and watch the detail emerge.
Class 11–12CollegeBuilds on Class 11 Maths: Complex Numbers
Mandelbrot set: for each complex number c, iterate z ← z² + c from z = 0. If |z| stays bounded, c is in the set (black). Colours show how quickly points escape past |z| = 2. Julia sets use the same rule, but fix c and vary the starting z; each c gives a different shape. Connected Julia sets correspond to c inside the Mandelbrot set.
Koch snowflake: replace the middle third of every edge with two sides of a triangle. Each step multiplies the perimeter by 4/3, so it grows without limit, while the area converges to 8/5 of the original triangle. Its fractal dimension is log 4 / log 3 ≈ 1.26: more than a line, less than an area.
Fractal tree: each branch splits into two shorter branches at a set angle and length ratio, the same recursion that shapes real trees, lungs and rivers.
Escape-time rendering with a maximum iteration count; deeper zooms need more iterations and eventually run into floating-point limits (about 10¹³×).
A Koch snowflake starts from a triangle with sides of 1 m. How long is its perimeter after 10 steps? Could you paint its inside with a finite amount of paint?
Perimeter = 3 × (4/3)¹⁰ ≈ 53.3 m, and it grows without limit. The area converges to (8/5) × (√3/4) ≈ 0.69 m², so finite paint covers it: an infinitely long boundary around a finite area.
Is c = −1 in the Mandelbrot set? Iterate z ← z² + c from z = 0: 0 → −1 → 0 → −1 → … The values repeat and never pass |z| = 2, so c = −1 is in the set (black).
Is c = 1 in the set? 0 → 1 → 2 → 5 → 26 → … After three steps |z| = 5 is past 2, so the point escapes and is coloured by that escape time.
Koch snowflake, depth 3: start with a triangle of side 1 (perimeter 3). Each step multiplies the number of edges by 4 and divides their length by 3, so at depth 3 there are 3 × 4³ = 192 edges of length 1/27 and the perimeter is 3 × (4/3)³ ≈ 7.11. Set depth 3 in the Koch mode and compare.
A shape that shows detail at every scale, often with smaller copies of itself inside. Zoom into the Mandelbrot boundary or a Koch edge and new structure keeps appearing.
Each step multiplies the perimeter by 4/3, which grows without limit, while the new triangles added each step get smaller fast enough that the total area converges to 8/5 of the starting triangle.
Both iterate z ← z² + c. The Mandelbrot set fixes the start z = 0 and colours each c; a Julia set fixes one c and colours each starting z. A Julia set is connected exactly when its c lies inside the Mandelbrot set.