Skip to content

Chaos Patterns

Math Chaos

This collection explores various mathematical patterns that emerge from simple iterative processes and chaotic systems, ranging from biological-looking ferns to abstract fractal sets.

Barnsley Fern

An Iterated Function System (IFS) fractal that closely resembles a natural fern, created using affine transformations.

Burning Ship Fractal

A fractal similar to the Mandelbrot set but generated with absolute values, resulting in a distinct “burning ship” appearance.

Sierpinski Gasket

A classic fractal based on a triangle with a recursive subdivision into smaller triangles.

Tinkerbell Map

A discrete-time dynamical system that exhibits chaotic behavior and forms a unique attractor shape.

The Barnsley fern is a classic example of how complex, organic-looking structures can be generated from just four simple linear equations.

The fern is constructed using a Chaos Game approach with four different affine transformations (f1f_1 to f4f_4), each chosen with a specific probability:

  1. Stem generation (f1f_1): Maps a point to the Y-axis (1% probability).
  2. Successive leaflets (f2f_2): Handles the main body of the fern (85% probability).
  3. Left-hand leaflet (f3f_3): Creates the left branches (7% probability).
  4. Right-hand leaflet (f4f_4): Creates the right branches (7% probability).
// Choose transformation based on random probability
int p = rand() % 100;
if (p == 1) {
a = f1(a); // Stem
} else if (p < 86) {
a = f2(a); // Body
} else if (p < 94) {
a = f3(a); // Left branch
} else {
a = f4(a); // Right branch
}

Generated by the iteration:

zn+1=(Re(zn)+iIm(zn))2+cz_{n+1} = (|\text{Re}(z_n)| + i|\text{Im}(z_n)|)^2 + c

This variation of the Mandelbrot set calculation creates a striking symmetry along the real axis.

A chaotic map defined by the following equations:

xn+1=xn2yn2+axn+bynyn+1=2xnyn+cxn+dyn\begin{align} x_{n+1} &= x_n^2 - y_n^2 + a \cdot x_n + b \cdot y_n \\ y_{n+1} &= 2 x_n y_n + c \cdot x_n + d \cdot y_n \end{align}

Common parameters used are a=0.9,b=0.6013,c=2.0,d=0.5a=0.9, b=-0.6013, c=2.0, d=0.5.