Barnsley Fern
An Iterated Function System (IFS) fractal that closely resembles a natural fern, created using affine transformations.
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 ($f_1$ to $f_4$), each chosen with a specific probability:
// Choose transformation based on random probabilityint 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:
z_{n+1} = (|Re(z_n)| + i|Im(z_n)|)^2 + cThis variation of the Mandelbrot set calculation creates a striking symmetry along the real axis.
A chaotic map defined by the following equations:
x_{n+1} = x_n^2 - y_n^2 + a*x_n + b*y_ny_{n+1} = 2*x_n*y_n + c*x_n + d*y_nCommon parameters used are $a=0.9, b=-0.6013, c=2.0, d=0.5$.