Free Online Utility • Interactive Fractal Studio • 2× HiDPI + SVG Engine

Convert a Number to a Fractal

Transform any real number, irrational constant (π, φ, √2, e), or integer into a Berry-Goldberg Curlicue Exponential Sum Fractal Σ exp(i · 2π n² · α) with live turn accumulation and SVG/PNG export.

Summation Terms (N)4000
Stroke / Detail1.8px
Rotation Angle0°
Mathematical Specification Fractal Studio
Berry-Goldberg Curlicue Exponential Sum (1988):
S_N(α) = Σ_{n=0..N} exp(i · π · n² · α)
Step Angle Recurrence:
  θ_{n+1} = (θ_n + 2π · n · α) mod 2π
  (x_{n+1}, y_{n+1}) = (x_n + cos θ_n, y_n + sin θ_n)
Mathematical ClassIncomplete Quadratic Gauss Sum
DiscoverersM. V. Berry & J. Goldberg (1988)
RenormalizationGoverned by Continued Fraction of α!
INTERACTIVE 2× HIDPI CANVAS
Convert a Number to a Fractal
100% • Scroll to Zoom • Drag to Pan
Client-side 2× HiDPI + Lossless SVG Engine Instant

Session Calculation Log

No entries recorded in this session yet.

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 / SettingElements / SizeGeometric 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.

Frequently Asked Questions

Why does a single number α generate a hierarchy of spirals within spirals?
Whenever n*α comes close to an integer (which happens at denominators of the continued fraction convergents of α), the turn angle stays nearly constant for many steps, coiling into a Cornu spiral; larger convergents group those small spirals into super-spirals!
Why is the Golden Ratio (0.6180339887) curlicue strictly self-similar?
Because the Golden Ratio has the purely periodic continued fraction [0; 1, 1, 1, ...], applying the Berry-Goldberg renormalization map leaves α invariant, making every super-spiral an exact scaled copy of its child spirals.
What happens if I enter a whole integer?
For a pure integer, π*n²*α would be a trivial multiple of π; the engine automatically multiplies whole integers by the golden constant φ mod 1 so every integer produces a unique non-degenerate curlicue.
What is the difference between Curlicue (n²), Cubic (n³), and Logarithmic (n ln n) sums?
Curlicue uses quadratic phases n² (Cornu spirals), Cubic uses Weyl cubic phases n³ (Airy-like cusps), and Logarithmic uses Dirichlet Riemann-zeta-like phases n*ln(n).