HP Prime Graphing NW280AAABA manual Equilateraltriangle, Hexagon

Models: Prime Graphing NW280AAABA

1 616
Download 616 pages 24.49 Kb
Page 176
Image 176

Polygon

equilateral_triangle

Draws an equilateral triangle defined by one of its sides; that is, by two consecutive vertices. The third point is calculated automatically, but is not defined symbolically. If a lowercase variable is added as a third argument, then the coordinates of the third point are stored in that variable. The orientation of the triangle is counterclockwise from the first point.

equilateral_triangle(point1, point2) or equilateral_triangle(point1, point2, var)

Examples:

equilateral triangle(0,6) draws an equilateral

triangle whose first two vertices are at (0, 0) and (6,0); the third vertex is calculated to be at (3,3*√3).

equilateral triangle(0,6, v) draws an equilateral

triangle whose first two vertices are at (0, 0) and (6,0); the third vertex is calculated to be at (3,3*√3) and these coordinates are stored in the CAS variable v. In CAS view, entering v returns point(3*(√3*i+1)), which is equal to (3,3*√3).

hexagon

Draws a regular hexagon defined by one of its sides; that is, by two consecutive vertices. The remaining points are calculated automatically, but are not defined symbolically. The orientation of the hexagon is counterclockwise from the first point.

hexagon(point1, point2) or hexagon(point1, point2, var1, var2, var3, var4)

Examples:

hexagon(0,6) draws a regular hexagon whose first two vertices are at (0, 0) and (6, 0).

hexagon(0,6, a, b, c, d) draws a regular hexagon whose first two vertices are at (0, 0) and (6, 0) and stores the other four points into the CAS variables a, b, c, and d. You do not have to define variables for all four remaining points, but the coordinates are stored in order. For example, hexagon(0,6, a) stores just the third point into the CAS variable a.

172

Geometry

Page 176
Image 176
HP Prime Graphing NW280AAABA manual Equilateraltriangle, Hexagon, Equilateral triangle0,6 draws an equilateral