Curve Command Examples
Action
Draws the image of a curve in 2 dimensions.
A parametric function is often represented
by a pair of equations for x and y in terms of a third variable
t. The pair of equations:
x = t²
y = 2t
defines a mapping: t returns (x,y)=(t²,
2t) . For every
value of t there is a corresponding point [t², 2t] in the plane. In this
case, for every value of t, we get a point on the parabola y² = 4x .
make parabola(t) [t^2, 2*t]
draw the curve parabola using color lred penwidth 2
Draws the graph of the parametric function.