Experiment No. 04 / An interactive exploration of biological optimization.
Why aren't sunflowers stupid?
If you've ever stared at a pinecone, a pineapple, or the disk of a sunflower, you’ve witnessed a high-performance packing algorithm designed by evolution. It’s called Phyllotaxis—the mathematical arrangement of leaves or seeds to maximize density and sunlight exposure.
This project is an interactive, high-contrast sandbox that demonstrates how the Golden Angle (~137.508°) optimizes seed packing density, and how even a
To pack as many seeds as possible onto a circular surface, a plant must generate seeds at a constant angle relative to the previous one.
But here lies the botanical catch: if the divergence angle is a clean fraction, the plant starves.
If a plant uses an angle like [0; 2, 1, 2]. This is a biological disaster.
You'd think [3, 7, 15, 1...], the large term 7 means it is easily approximated by
To avoid gaps, the plant must use the most irrational number possible—a number that is the absolute hardest to approximate with a rational fraction.
In number theory, the Golden Ratio (
Because
- Phyllotaxis Canvas: A clean, high-performance canvas rendering up to 1,500 seeds. Watch the spiral arms emerge and collapse in real-time as you sweep across the angles.
-
Real-Time Spacing Variance Analyzer: Rather than drawing arbitrary spiral lines, the application performs a live spatial analysis. It computes the Packing Efficiency Index (0-100%) dynamically by calculating the standard deviation and mean of nearest-neighbor distance (spacing variance) across the seeds. High uniformity yields
$99%$ , while radial clumping drops to$10%$ . - Dynamic Continued Fraction Chip-set: Displays the active angle's continued fraction expansion dynamically, highlighting how large terms in the expansion correspond to visible alignments and gaps.
- Space Utilization Diagnostic: Explains the biological impact of the chosen angle in plain terms (e.g., “Severe clumping: 135° stacks seeds along 8 spokes, leaving 88% of the surface area empty.”).