Zähler = -18 (slider from -20 to -6, step 1)
Nenner = 4 (slider from 1 to 5, step 1)
a: Zähler / Nenner
A: (a, 0)
O: (0, 0)
f = Segment(O, A)
A_1: (a, 1)
O_1: (0, 1)
P_1: (a, 0.5)
P_2: (a, 1.5)
P_3: (abs(a), 0.5)
P_4: (abs(a), 1.5)
A_2: (abs(a), 1)
h = Segment(P_4, P_3)
O_2: (0, 0.5)
O_3: (0, 1.5)
i = Segment(O_3, O_2)
g = Segment(P_2, P_1)
j = Segment(A_1, O_1)
k = Segment(O_1, A_2)
Text1: "a=\frac{" + (LaTeX[Zähler]) + "}{" + (LaTeX[Nenner]) + "}≅" + (LaTeX[a]) + ""
Betrag: abs(a)
Text2: "|" + (LaTeX[a]) + "|=" + (LaTeX[Betrag]) + ""
M_1 = Midpoint(A_1, O_1)
M_2 = Midpoint(O_1, A_2)
Text3: "|" + (LaTeX[Betrag]) + "|=" + (LaTeX[Betrag]) + ""