Fractals¶
CalcpadCE treats fractals as a stress-test for its iterative-computation, complex-number and inline-SVG capabilities — the same primitives that drive engineering worksheets are repurposed here to render self-similar geometry.
Two flavours coexist: escape-time sets, where every pixel is the result of an iterated map evaluated to a divergence threshold (the Mandelbrot set is the canonical example), and L-system style replacements, where a seed polygon is recursively subdivided into ever-finer detail. The animated variants (Koch snowflake, Kochwave, Kochwave snowflake) reveal each subdivision step as a separate SVG layer, turning convergence toward the limit shape into a watchable timeline. A stochastic chaos-game (Sierpinski tree) closes the set, showing how randomness alone reproduces a fixed attractor.
Iteration depth, viewport and palette are exposed at the top of every sheet for easy zoom-and-render experiments.
Mandelbrot Set¶
Renders the Mandelbrot set and a deep-zoom inset by mapping each grid point through the iterated quadratic \(z_{n+1} = z_n^2 + c\) via $Map.
Pixel intensity is the escape iteration count, raised to a power for contrast control.
#hide
PlotStep = 1','PlotWidth = 1200','PlotHeight = PlotWidth
PlotShadows = 0','PlotSmooth = 1','PlotPalette = 4
#show
$Map{Mandelbrot(x; y)^2 @ x = -2 : 0.5 & y = -1.25 : 1.25}
$Map{Mandelbrot(x; y)^4 @ x = -0.59 : -0.58 & y = 0.55 : 0.56}