DGS Studio

Polar & Fourier Curves

Basic polar flower

Bounded numerical curves. Cosine a₀ adds to the constant term.

This rose is r = 2*cos(5*theta), with θ running from 0 to 2*pi. The frequency 5 is odd, so a full turn draws 5 petals. The factor 2 is the length of each petal.

Where cosine is negative, r is negative and the petal is drawn through the origin in the opposite direction. Changing the integer inside cos changes the petal count: an odd integer n gives n petals, and an even integer gives 2n.

Equation

polar(2*cos(5*theta), 0, 2*pi)

Graph preview

Graph preview of polar(2*cos(5*theta), 0, 2*pi)
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