DGS Studio

Parametric Curves

Gear – 10 Teeth

A closed 10-tooth gear with flatter tooth tops and valleys.

The gear is one parametric loop: x(t) and y(t) share the radius 1.2 + 0.20·tanh(3·sin(10t)). The 10 inside the sine is the tooth count. tanh squashes the sine into a flat-topped tooth instead of a round bump.

t runs from 0 to 2π, so the curve closes. The 1.2 is the pitch radius and 0.20 is the tooth depth. Replace 10 with another integer to change how many teeth are cut into the same circle.

Equation

x(t)=(1.2+0.20*tanh(3*sin(10*t)))*cos(t),
y(t)=(1.2+0.20*tanh(3*sin(10*t)))*sin(t),
0 <= t <= 2*pi

Graph preview

Graph preview of x(t)=(1.2+0.20*tanh(3*sin(10*t)))*cos(t), y(t)=(1.2+0.20*tanh(3*sin(10*t)))*sin(t), 0 <= t <= 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