Mercerenies / fifi-calculator

1 stars 0 forks source link

Parametric plots #81

Closed Mercerenies closed 5 days ago

Mercerenies commented 5 days ago

If the graphics(plot(...)) directive receives a function call xy in the second slot, the function is treated as parametric rather than an ordinary X-Y graph.

Example:

# Regular plot
graphics(plot(-3..3, x^2))
# Parametric plot
graphics(plot(-3..3, xy(t^2, t^3)))

Note that, as with regular plots, the name of the free variable (t in this example) is irrelevant.

Mercerenies commented 5 days ago

Closed: b415993