See section 11.13.7 for Cartesian equations of two-dimensional objects.
The equation command takes as argument a geometric object.
equation returns Cartesian equations which specify the object. The equations will involve z, y and z, so these variables must be unassigned. If they have assignments, they can be unassigned with purge(x,y,z).
Input:
Output:
Input:
Output: