DGS Studio

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

Graph preview of 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), ...
A static sample of this expression. The studio draws the full interactive result.

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

Try a change

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.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples