T = (1, -2)
U = (12, -2)
f = Line(T, U)
P_1 = (-1.2787980000000045, 2.1166080000000003)
g = Line(P_1, f)
A = Point(f)
B = Point(f)
h = Segment(A, B)
D = Point(g)
i = Line(A, D)
j = Line(B, i)
C = Intersect(g, j)
mnohoúhelník1, a, b, c, d = Polygon(A, B, C, D)
E = Point(f)
k = OrthogonalLine(E, g)
F = Intersect(g, k)
v_a = Segment(E, F)
G = Point(j)
l = OrthogonalLine(G, i)
m = OrthogonalLine(G, j)
H = Intersect(i, l)
v_b = Segment(G, H)
text1: "S = a · v_a  \\
S = " + (LaTeX[a]) + " · " + (LaTeX[v_a]) + " \\
S = " + (LaTeX[(a * v_a)]) + "cm²"
text2: "S = b · b_v\\
S = " + (LaTeX[b]) + " · " + (LaTeX[v_b]) + "\\
S =" + (LaTeX[(b * v_b)]) + "cm²"
text3: "o = 2  (a + b)\\
o = 2 (" + (LaTeX[a]) + " + " + (LaTeX[b]) + ")\\
o = " + (LaTeX[a + a + b + b]) + "cm\\
"