HP Prime Graphing Wireless Calculator User Manual
Page 51
![background image](/manuals/397843/51/background.png)
Geometry
47
rectangle(point1, point2, point3) or
rectangle(point1, point2, realk)
Examples:
rectangle(GA, GB, GE) draws a rectangle whose first
two vertices are points A and B (one side is segment AB).
Point E is on the line that contains the side of the rectangle
opposite segment AB.
rectangle(GA, GB, 3, p, q) draws a rectangle whose
first two vertices are points A and B (one side is segment AB).
The sides perpendicular to segment AB have length 3*AB.
The third and fourth points are stored into the CAS variables
p and q, respectively.
Polygon
Draws a polygon from a set of vertices.
polygon(point1, point2, …, pointn)
Example:
polygon(GA, GB, GD) draws ΔABD
Regular Polygon
Draws a regular polygon given the first 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 first two vertices are the points A and B.
Square
Draws a square, given two consecutive vertices as points.
square(point1, point2)
Example:
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