\frac{a}{h}=\frac{b}{i}=\frac{c}{g}=k

Kolmnurgad ABC ja GHI on sarnased külg-külg-külg tunnuse järgi.

A = (-4, 0)
B = (6, -2)
C = (6, 6)
t1, c, a, b = Polygon(A, B, C)
D = Midpoint(B, C)
E = Midpoint(C, A)
F = Midpoint(A, B)
f = Segment(A, D)
g_{2} = Segment(B, E)
h_{2} = Segment(F, C)
O = Intersect(f, g_{2})
G = Midpoint(O, C)
I = Midpoint(O, B)
H = Midpoint(O, A)
t2, g, h, i = Polygon(H, I, G)
Punktt2 = PointIn(t2)
Punktt1 = PointIn(t1)
tekst1: "S_{ABC}= " + t1 + ""
tekst2: "S_{GHI}=" + t2 + ""
suhe: t1 / t2
tekst3: "\frac{S_{ABC}}{S_{GHI}}=\frac{" + (LaTeX[suhe]) + "}{1}"
suhe1: a / h
tekst4: "\frac{" + (LaTeX[a]) + "}{" + (LaTeX[h]) + "}=\frac{" + (LaTeX[b]) + "}{" + (LaTeX[i]) + "}=\frac{" + (LaTeX[c]) + "}{" + (LaTeX[g]) + "}=" + (LaTeX[suhe1]) + ""
suhe2: c / g
suhe3: b / i