MorleyTheoremNotebook::usage="From a base triangle, the trisectors of their internal angles are drawn. The adjacent trisectors intersect in pairs and form an equilateral triangle inside. Enter in the command below, the coordinates in clockwise direction. Reference: Weisstein, Eric W. Morley's Theorem , From MathWorld; Weisstein, Eric W. First Morley's Triangle, From MathWorld; Personal";
In[]:=
MorleyTheoremNotebook[{x1_,y1_},{x2_,y2_},{x3_,y3_}]:=Module{},Test=Det[{{x1,y1,1},{x2,y2,1},{x3,y3,1}}];IfTest==0,Print[PasteButton["It's not a triangle."]],P1={x1,y1};P2={x2,y2};P3={x3,y3};aa=+;bb=+;cc1=+;α=ArcCos+-;β=ArcCos+-;γ=ArcCos+-;xx=N[aa(1)];yy=N2bbCosγ;zz=N2cc1Cosβ;=;=;=;PuntoD={x1,y1}+{x2,y2}+{x3,y3};xd1=Take[PuntoD,{1}].{1};yd1=Take[PuntoD,{2}].{1};xx1=N2aaCosγ;yy1=N[bb(1)];zz1=N2cc1Cosα;=;=;=;PuntoE={x1,y1}+{x2,y2}+{x3,y3};xe1=Take[PuntoE,{1}].{1};ye1=Take[PuntoE,{2}].{1};xx2=N2aaCosβ;yy2=N2bbCosα;zz2=N[cc1(1)];=;=;=;PuntoF={x1,y1}+{x2,y2}+{x3,y3};xf1=Take[PuntoF,{1}].{1};yf1=Take[PuntoF,{2}].{1};Print[" "];l=Grid[{{,,},{N[Norm[{xd1,yd1}-{xe1,ye1}]],N[Norm[{xd1,yd1}-{xf1,yf1}]],N[Norm[{xf1,yf1}-{xe1,ye1}]]}},ItemSize15,ItemStyle15,FrameAll];Print[l];Print[" "];label[sym_,Point[pos_]]:={PointSize[Scaled[0.018]],Hue[1,1,1],Point[pos],Text[Style[sym,White,FontSizeScaled[0.012]],pos]};Show[{Graphics[{LightYellow,EdgeForm[{Thick,Black}],Polygon[{P1,P2,P3}]}],Graphics[{Green,EdgeForm[{Thick,Black}],Polygon[{{xe1,ye1},{xd1,yd1},{xf1,yf1}}]}],Graphics[{Blue,Thick,Line[{P3,{xd1,yd1}}]}],Graphics[{Blue,Thick,Line[{P2,{xd1,yd1}}]}],Graphics[{Purple,Thick,Line[{P3,{xe1,ye1}}]}],Graphics[{Purple,Thick,Line[{P1,{xe1,ye1}}]}],Graphics[{Orange,Thick,Line[{P1,{xf1,yf1}}]}],Graphics[{Orange,Thick,Line[{P2,{xf1,yf1}}]}],Graphics[{MapThread[label,{{"A","B","C","D","E","F"},{Point[P1],Point[P2],Point[P3],Point[{xd1,yd1}],Point[{xe1,ye1}],Point[{xf1,yf1}]}}]}]},AxesTrue,BoxRatiosAutomatic,AxesOrigin{0,0},ImageSize900,PlotRangeAll]
2
(x3-x2)
2
(y3-y2)
2
(x3-x1)
2
(y3-y1)
2
(x2-x1)
2
(y2-y1)
2
bb
2
cc1
2
aa
2bbcc1
2
aa
2
cc1
2
bb
2aacc1
2
aa
2
bb
2
cc1
2aabb
1
3
1
3
λ
1
xx
xx+yy+zz
λ
2
yy
xx+yy+zz
λ
3
zz
xx+yy+zz
λ
1
λ
2
λ
3
1
3
1
3
λ
4
xx1
xx1+yy1+zz1
λ
5
yy1
xx1+yy1+zz1
λ
6
zz1
xx1+yy1+zz1
λ
4
λ
5
λ
6
1
3
1
3
λ
7
xx2
xx2+yy2+zz2
λ
8
yy2
xx2+yy2+zz2
λ
9
zz2
xx2+yy2+zz2
λ
7
λ
8
λ
9
DE
DF
FE
In[]:=
MorleyTheoremNotebook[{-2,5},{7,12},{9,-4}]
DE | DF | FE |
2.43371 | 2.43371 | 2.43371 |
Out[]=