Geometry 191
LineHorz
Draws the horizontal line y=a.
LineHorz(a)
Example:
LineHorz(-2) draws the horizontal line whose equation is
y = –2
LineVert
Draws the vertical line x=a.
LineVert(a)
Example:
LineVert(–3) draws the vertical line whose equation is x
= –3
open_polygon
Connects a set of points with line segments, in the given order,
to produce a polygon. If the last point is the same as the first
point, then the polygon is closed; otherwise, it is open.
open_polygon(point1, point2, …, point1) or
open_polygon(point1, point2, …, pointn)
polar
Returns the polar line of the given point as pole with respect
to the given circle.
polar(circle, point)
Example:
polar(circle(x^2+y^2=1),point(1/3,0)) returns
x=3
polar_coordinates
Returns a vector containing the polar coordinates of a point
or a complex number.
polar_coordinates(point) or
polar_coordinates(complex)
Example:
polar_coordinates(√2, √2) returns [2, π/4])