define a triangle
triangle(T, [A, B, C], n)
triangle(T, [l1, l2, l3], n)
triangle(T, [side1, side2, side3])
triangle(T, [side1, 'angle'=theta, side3], n)
the name of the triangle
A, B, C
l1, l2, l3
side1, side2, side3
three sides of the triangle
side1, 'angle'=theta, side3
side1 and side3 are the two sides of the triangle, and theta is the angle between them
(optional) list of two names representing the names of the horizontal-axis and vertical-axis respectively
A triangle is a polygon having three sides. A vertex of a triangle is a point at which two of the sides meet.
A triangle T can be defined as follows:
from three given points A, B, C.
from three given lines l1, l2, l3.
from the sides of the triangle.
from the two sides of the triangle and the angle between them.
To access the information relating to a triangle T, use the following function calls:
returns the form of the geometric object (i.e., triangle2d if T is a triangle).
returns the name of the horizontal-axis; or FAIL if the axis is not assigned a name.
returns the name of the vertical-axis; or FAIL if the axis is not assigned a name.
the method to define the triangle T. They are points if T is defined from three points or three lines. sides if T is defined from three sides. angle if T is defined from two sides, and the angle between them.
returns the list of three vertices of T if T is defined from three points or three lines. the list of three sides of T if T is defined from three sides. the list of two sides and an angle in between if T is defined that way.
returns a detailed description of the triangle T.
The command with(geometry,triangle) allows the use of the abbreviated form of this command.
define three points A⁡0,0,B⁡1,1, and C⁡1,0
define the triangle T1 that has A,B,C as its vertices
define three lines l1,l2,l3 as follows:
define the triangle T2 from three lines l1,l2,l3:
define the triangle T3 from three sides:
name of the objectT3form of the objecttriangle2dmethod to define the trianglesidesthe three sides of the triangle3,3,3
check if T3 is a equilateral triangle
define the triangle T4 from two sides and the angle between them:
Download Help Document