geom3d
IsEquilateral
test if a given triangle is equilateral
Calling Sequence
Parameters
Description
Examples
IsEquilateral(ABC, cond )
ABC
-
triangle
cond
(optional) name
This routine tests if the given triangle ABC is equilateral. It returns true if ABC is equilateral; false if it is not; and FAIL if it is unable to reach a conclusion.
In FAIL is returned, and the optional argument is given, then the condition that makes ABC equilateral is assigned to this argument. It will be either of the form expr=0 or of the form &or⁡expr_1=0,expr_2=0,...,expr_n where expr, expri_i are Maple expressions.
The command with(geom3d,IsEquilateral) allows the use of the abbreviated form of this command.
with⁡geom3d:
triangle⁡ABC,point⁡A,0,0,0,point⁡B,2,0,0,point⁡C,1,2,0
IsEquilateral⁡ABC
false
point⁡C,1,a,0:
IsEquilateral⁡ABC,cond
IsEquilateral: "hint: one of the following conditions must be satisfied: {-a^2+3 = 0}"
FAIL
−a2+3=0
assume⁡cond
true
assume⁡op⁡1,cond≠op⁡2,cond
See Also
geom3d[IsRightTriangle]
geom3d[triangle]
Download Help Document