Sequences & Mathematical Patterns
Flower of Life
Classic white Flower of Life clipped to a radius-3 circle.
This example is made of 38 parametric circles. Each line has the form x(t) = h + cos(t), y(t) = k + sin(t), which is a unit circle centered at (h, k).
A unit circle centered at the origin is the first line. Later lines move that same circle to the neighboring lattice points. Together they build the flower pattern. Any clip_circle, curve_color, or curve_width line is a drawing instruction, not another circle.
Equation
x(t)=cos(t), y(t)=sin(t)
x(t)=1+cos(t), y(t)=sin(t)
x(t)=-1+cos(t), y(t)=sin(t)
x(t)=0.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=-0.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=0.5+cos(t), y(t)=-0.8660254+sin(t)
x(t)=-0.5+cos(t), y(t)=-0.8660254+sin(t)
x(t)=2+cos(t), y(t)=sin(t)
x(t)=1.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=1+cos(t), y(t)=1.7320508+sin(t)
x(t)=cos(t), y(t)=1.7320508+sin(t)
x(t)=-1+cos(t), y(t)=1.7320508+sin(t)
x(t)=-1.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=-2+cos(t), y(t)=sin(t)
x(t)=-1.5+cos(t), y(t)=-0.8660254+sin(t)
x(t)=-1+cos(t), y(t)=-1.7320508+sin(t)
x(t)=cos(t), y(t)=-1.7320508+sin(t)
x(t)=1+cos(t), y(t)=-1.7320508+sin(t)
x(t)=1.5+cos(t), y(t)=-0.8660254+sin(t)
x(t)=3+cos(t), y(t)=sin(t)
x(t)=2.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=2+cos(t), y(t)=1.7320508+sin(t)
x(t)=1.5+cos(t), y(t)=2.5980762+sin(t)
x(t)=0.5+cos(t), y(t)=2.5980762+sin(t)
x(t)=-0.5+cos(t), y(t)=2.5980762+sin(t)
x(t)=-1.5+cos(t), y(t)=2.5980762+sin(t)
x(t)=-2+cos(t), y(t)=1.7320508+sin(t)
x(t)=-2.5+cos(t), y(t)=0.8660254+sin(t)
x(t)=-3+cos(t), y(t)=sin(t)
x(t)=-2.5+cos(t), y(t)=-0.8660254+sin(t)
x(t)=-2+cos(t), y(t)=-1.7320508+sin(t)
x(t)=-1.5+cos(t), y(t)=-2.5980762+sin(t)
x(t)=-0.5+cos(t), y(t)=-2.5980762+sin(t)
x(t)=0.5+cos(t), y(t)=-2.5980762+sin(t)
x(t)=1.5+cos(t), y(t)=-2.5980762+sin(t)
x(t)=2+cos(t), y(t)=-1.7320508+sin(t)
x(t)=2.5+cos(t), y(t)=-0.8660254+sin(t)
clip_circle(0,0,3)
curve_color(white)
curve_width(2)
x(t)=3*cos(t), y(t)=3*sin(t)
Graph preview
Polar and parametric curves
Polar and parametric equations describe a point by a rule instead of by y as a function of x. In polar form, a radius r depends on the angle θ, and the plotted point is (r cos θ, r sin θ). A negative radius is drawn in the opposite direction.
A parametric curve gives x(t) and y(t) separately. The parameter t is not a coordinate on the page; it only tells the pen how to move. Closed curves usually let t run from 0 to 2π. DGS samples the path and draws it as one JSXGraph curve.
Reading the input
Unit circles on a triangular lattice— Each x(t), y(t) line is a circle of radius 1. The added constants are the center. clip_circle, curve_color, and curve_width at the end style the drawing and do not create another circle.
Try a change
- If the expression contains an integer frequency, add 1 to it and generate again. Petal counts and tooth counts follow that integer.
- Shorten the parameter interval so t or θ stops at π. You should see only part of the closed curve.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.