geometry
AreSimilar
test if two triangles are similar
Calling Sequence
Parameters
Description
Examples
AreSimilar(T1, T2, cond)
T1, T2
-
two triangles
cond
(optional) name
Two similar triangles T1 and T2 are triangles whose corresponding angles are congruent and whose corresponding sides are in proportion.
The routine returns true if T1 and T2 are similar; false if they are not; and FAIL if it is unable to reach a conclusion.
In FAIL is returned, and the optional argument is given, the condition that makes T1 and T2 similar is assigned to this argument. It will be either of the form expr=0 or of the form &or⁡expr_1=0,...,expr_n=0 where expr, expr_i are Maple expressions.
The command with(geometry,AreSimilar) allows the use of the abbreviated form of this command.
with⁡geometry:
point⁡A,0,0,point⁡B,0,3,point⁡C,1,0,point⁡H,0,6,point⁡F,2,0:
point⁡G,3,1:
triangle⁡T1,A,B,C:
triangle⁡T2,A,H,F:
triangle⁡T3,A,H,G:
AreSimilar⁡T1,T2
true
AreSimilar⁡T1,T3
false
point⁡H,0,Hy,point⁡G,Gx,1:
AreSimilar⁡T1,T3,cond
AreSimilar: "hint: one of the following conditions must be satisfied: {{9/Hy^2-10/(Gx^2+(Hy-1)^2) = 0, 9/Hy^2-1/(Gx^2+1) = 0}, {9/Hy^2-1/(Gx^2+(Hy-1)^2) = 0, 9/Hy^2-10/(Gx^2+1) = 0}, {9/(Gx^2+(Hy-1)^2)-10/Hy^2 = 0, 9/(Gx^2+(Hy-1)^2)-1/(Gx^2+1) = 0}, {9/(Gx^2+(Hy-1)^2)-1/Hy^2 = 0, 9/(Gx^2+(Hy-1)^2)-10/(Gx^2+1) = 0}, {9/(Gx^2+1)-10/Hy^2 = 0, 9/(Gx^2+1)-1/(Gx^2+(Hy-1)^2) = 0}, {9/(Gx^2+1)-1/Hy^2 = 0, 9/(Gx^2+1)-10/(Gx^2+(Hy-1)^2) = 0}}"
FAIL
&or⁡9Hy2−10Gx2+Hy−12=0,9Hy2−1Gx2+1=0,9Hy2−1Gx2+Hy−12=0,9Hy2−10Gx2+1=0,9Gx2+Hy−12−10Hy2=0,9Gx2+Hy−12−1Gx2+1=0,9Gx2+Hy−12−1Hy2=0,9Gx2+Hy−12−10Gx2+1=0,9Gx2+1−10Hy2=0,9Gx2+1−1Gx2+Hy−12=0,9Gx2+1−1Hy2=0,9Gx2+1−10Gx2+Hy−12=0
See Also
geometry[triangle]
Download Help Document