geometry
sides
compute the sides of a given triangle or a given square
Calling Sequence
Parameters
Description
Examples
sides(g)
g
-
triangle or square
The routine computes the sides of triangle g or square g.
In case g is a triangle, the output is a list of three element denoting the three sides of g.
The command with(geometry,sides) allows the use of the abbreviated form of this command.
withgeometry:
triangleABC,pointA,0,0,pointB,3,0,pointC,0,4:
sidesABC
9,25,16
pointC,0,3,pointE,3,3:
squareSq,A,B,E,C:
sidesSq
1822
See Also
geometry[FindAngle]
geometry[square]
geometry[triangle]
Download Help Document