Regular Polygon
Draws a regular polygon given the rst two vertices and the number of sides, where the number of sides is
greater than 1. If the number of sides is 2, then the segment is drawn. You can provide CAS variable names for
storing the coordinates of the calculated points in the order they were created. The orientation of the polygon
is counterclockwise.
isopolygon(point1, point2, realn), where realn is an integer greater than 1.
Example:
isopolygon(GA, GB, 6) draws a regular hexagon whose rst two vertices are the points A and B.
Square
Draws a square, given two consecutive vertices as points.
square(point1, point2)
Example:
square(0, 3+2i, p, q) draws a square with vertices at (0, 0), (3, 2), (1, 5), and (-2, 3). The last two
vertices are computed automatically and are saved into the CAS variables p and q.
Curve
Circle
Draws a circle, given the endpoints of the diameter, or a center and radius, or an equation in x and y.
circle(point1, point2) or circle(point1, point 2-point1) or circle(equation)
Examples:
circle(GA, GB) draws the circle with diameter AB.
circle(GA, GB-GA) draws the circle with center at point A and radius AB.
circle(x^2+y^2=1) draws the unit circle.
This command can also be used to draw an arc.
circle(GA, GB, 0, π/2) draws a quarter-circle with diameter AB.
Circumcircle
Draws the circumcircle of a triangle; that is, the circle circumscribed about a triangle.
circumcircle(point1, point2, point3)
Example:
circumcircle(GA, GB, GC) draws the circle circumscribed about ΔABC.
Excircle
Given three points that dene a triangle, draws the excircle of the triangle that is tangent to the side dened
by the last two points and also tangent to the extensions of the two sides where the common vertex is the
rst point.
Example:
excircle(GA, GB, GC) draws the circle tangent to segment BC and to the rays AB and AC.
Geometry functions and commands 195
Komentarze do niniejszej Instrukcji