Mathematical Foundations of Convert a Number to a Fractal
Studied by physicist Sir Michael Berry and J. Goldberg in 1988, the Curlicue Fractal (or Incomplete Gauss Sum curve) converts any real number α into a striking self-similar chain of spiralling "curlicues" by plotting the partial sums S_N = Σ_{n=0}^N exp(i·π·n²·α) in the complex plane. At each step n, the turtle advances by unit length at angle θ_n = π·n²·α.
Self-similar fractals exhibit recurring geometric structure across scales, governed by Iterated Function Systems (IFS), Lindenmayer L-System rewriting rules, or recursive spatial subdivisions. Every geometry calculation, 2× HiDPI canvas pass, progressive animation frame, and lossless SVG vector export executes natively inside your browser at 60 FPS with zero server latency.
Quadratic Gauss Sums & Continued Fraction Renormalization
Complex Partial Sum: S_N(α) = sum_{n=0}^N exp(i · π · n² · α)
Incremental Angle Step: Δθ_n = θ_n - θ_{n-1} = π · (2n - 1) · α
Whenever Δθ_n passes near a multiple of 2π, the curve coils into a tight Cornu-like spiral ("curlicue")!
Berry-Goldberg Renormalization Theorem:
Rescaling a curlicue of α produces the curlicue of the Gauss continued-fraction map T(α) = (1/α) mod 1!
Because the hierarchy of spirals is governed by the continued fraction expansion of α, numbers with periodic continued fractions — such as the Golden Ratio φ = [1; 1, 1, 1, ...] and Silver Ratio √2 − 1 = [0; 2, 2, 2, ...] — generate strictly self-similar fractal super-spirals of spirals!
Iteration Scaling & Complexity Table
| Iteration / Setting | Elements / Size | Geometric Property |
|---|---|---|
| Golden Ratio φ ≈ 0.61803399 | [0; 1, 1, 1, ...] | Strictly self-similar nested golden curlicues |
| Silver Ratio √2−1 ≈ 0.41421356 | [0; 2, 2, 2, ...] | Symmetric paired double-spiral chain |
| Pi Fractional ≈ 0.14159265 | [0; 7, 15, 1, 292...] | Giant 113/355 Cornu super-cluster |
| Euler e ≈ 2.71828183 | [2; 1, 2, 1, 1, 4...] | Multi-scale hierarchy of growing coils |
Applications in Science, Graphics & Engineering
Optical Fresnel Diffraction & Cornu Spirals
For very small α, the discrete curlicue sum approximates the continuous Fresnel integral (Euler/Cornu spiral) of wave optics.
Analytic Number Theory & Weyl Sums
Bounds on the diameter |S_N(α)| ~ O(√N) directly visualize Hardy-Littlewood estimates for quadratic Gauss sums.
Diophantine Rational Approximations
Large isolated spiral super-clusters reveal unusually accurate rational approximations p/q (like 355/113 for π).
Precision Vector Export
Export up to 8,000 exponential sum terms as a crisp SVG vector graphic.
Interactive Controls, Pan/Zoom & Vector Export
Test the Golden Ratio, Silver Ratio, Pi, and Euler e presets, type any custom decimal or integer into the Input Number box, and click Animate Growth to watch the curlicues wind up.
Export crisp 2× Retina PNG renders for presentations or scalable infinite-resolution SVG files directly into Illustrator, Figma, Inkscape, LaTeX, or laser-cutting workflows.