Rechtecke übereinander schieben

Nenner = 22 (slider from 1 to 22, step 1)
A = (17.490000000000002, 9.26)
z = 0.33 (slider from 0 to 1, step 0.01)
Zähler: round(z Nenner)
C = Intersect(xAxis, yAxis)
B: (0, y(A))
D: (x(A), 0)
rechteck, a, b, c, d = Polygon(A, B, C, D)
P01: (x(A) / Nenner, 0)
P02: (2 x(A) / Nenner, 0)
P03: (3 x(A) / Nenner, 0)
P04: (4 x(A) / Nenner, 0)
P05: (5 x(A) / Nenner, 0)
P06: (6 x(A) / Nenner, 0)
P07: (7 x(A) / Nenner, 0)
P08: (8 x(A) / Nenner, 0)
P09: (9 x(A) / Nenner, 0)
P10: (10 x(A) / Nenner, 0)
P11: (11 x(A) / Nenner, 0)
P12: (12 x(A) / Nenner, 0)
P13: (13 x(A) / Nenner, 0)
P14: (14 x(A) / Nenner, 0)
P15: (15 x(A) / Nenner, 0)
P16: (16 x(A) / Nenner, 0)
P17: (17 x(A) / Nenner, 0)
P18: (18 x(A) / Nenner, 0)
P19: (19 x(A) / Nenner, 0)
P20: (20 x(A) / Nenner, 0)
P21: (21 x(A) / Nenner, 0)
P'01: (x(P01), y(A))
P'02: (x(P02), y(A))
P'03: (x(P03), y(A))
P'04: (x(P04), y(A))
P'05: (x(P05), y(A))
P'06: (x(P06), y(A))
P'07: (x(P07), y(A))
P'08: (x(P08), y(A))
P'09: (x(P09), y(A))
P'10: (x(P10), y(A))
P'11: (x(P11), y(A))
P'12: (x(P12), y(A))
P'13: (x(P13), y(A))
P'14: (x(P14), y(A))
P'15: (x(P15), y(A))
P'16: (x(P16), y(A))
P'17: (x(P17), y(A))
P'18: (x(P18), y(A))
P'19: (x(P19), y(A))
P'20: (x(P20), y(A))
P'21: (x(P21), y(A))
s01 = Segment(P'01, P01)
s02 = Segment(P'02, P02)
s03 = Segment(P'03, P03)
s04 = Segment(P'04, P04)
s05 = Segment(P'05, P05)
s06 = Segment(P'06, P06)
s07 = Segment(P'07, P07)
s08 = Segment(P'08, P08)
s09 = Segment(P'09, P09)
s10 = Segment(P'10, P10)
s11 = Segment(P'11, P11)
s12 = Segment(P'12, P12)
s13 = Segment(P'13, P13)
s14 = Segment(P'14, P14)
s15 = Segment(P'15, P15)
s16 = Segment(P'16, P16)
s17 = Segment(P'17, P17)
s18 = Segment(P'18, P18)
s19 = Segment(P'19, P19)
s20 = Segment(P'20, P20)
s21 = Segment(P'21, P21)
text2: "Zähler = " + Zähler
D': (Zähler / Nenner x(A), 0)
A': (x(D'), y(A))
rechteck', a', b', c', d' = Polygon(A', B, C, D')
text1: "\frac{" + Zähler + "}{" + Nenner + "}"
N = 22 (slider from 1 to 22, step 1)
schieben = 25 (slider from 0 to 25, step 0.1)
E: (x(A) + schieben, y(A))
z_2 = 0.31 (slider from 0 to 1, step 0.01)
Zähler_2: round(z_2 N)
F: (x(B) + schieben, y(B))
H: (x(C) + schieben, y(C))
J: (x(D) + schieben, y(D))
poly1, e_1, f_1, h_1, j_1 = Polygon(E, F, H, J)
K: (x(A) / N + x(F), 0)
L: (2 x(A) / N + x(F), 0)
M: (3 x(A) / N + x(F), 0)
O: (4 x(A) / N + x(F), 0)
P: (5 x(A) / N + x(F), 0)
Q: (6 x(A) / N + x(F), 0)
R: (7 x(A) / N + x(F), 0)
S: (8 x(A) / N + x(F), 0)
T: (9 x(A) / N + x(F), 0)
U: (10 x(A) / N + x(F), 0)
V: (11 x(A) / N + x(F), 0)
W: (12 x(A) / N + x(F), 0)
Z: (13 x(A) / N + x(F), 0)
A_1: (14 x(A) / N + x(F), 0)
B_1: (15 x(A) / N + x(F), 0)
C_1: (16 x(A) / N + x(F), 0)
D_1: (17 x(A) / N + x(F), 0)
E_1: (18 x(A) / N + x(F), 0)
F_1: (19 x(A) / N + x(F), 0)
G_1: (20 x(A) / N + x(F), 0)
H_1: (21 x(A) / N + x(F), 0)
I_1: (x(K), y(E))
J_1: (x(L), y(E))
K_1: (x(M), y(E))
L_1: (x(O), y(E))
M_1: (x(P), y(E))
N_1: (x(Q), y(E))
O_1: (x(R), y(E))
P_1: (x(S), y(E))
Q_1: (x(T), y(E))
R_1: (x(U), y(E))
S_1: (x(V), y(E))
T_1: (x(W), y(E))
U_1: (x(Z), y(E))
V_1: (x(A_1), y(E))
W_1: (x(B_1), y(E))
Z_1: (x(C_1), y(E))
A_2: (x(D_1), y(E))
B_2: (x(E_1), y(E))
C_2: (x(F_1), y(E))
D_2: (x(G_1), y(E))
E_2: (x(H_1), y(E))
k = Segment(I_1, K)
l = Segment(J_1, L)
m = Segment(K_1, M)
n = Segment(L_1, O)
p = Segment(M_1, P)
q = Segment(N_1, Q)
r = Segment(O_1, R)
s = Segment(P_1, S)
t = Segment(Q_1, T)
a_1 = Segment(R_1, U)
b_1 = Segment(S_1, V)
c_1 = Segment(T_1, W)
d_1 = Segment(U_1, Z)
g_1 = Segment(V_1, A_1)
i_1 = Segment(W_1, B_1)
k_1 = Segment(Z_1, C_1)
l_1 = Segment(A_2, D_1)
m_1 = Segment(B_2, E_1)
n_1 = Segment(C_2, F_1)
p_1 = Segment(D_2, G_1)
q_1 = Segment(E_2, H_1)
F_2: (Zähler_2 / N x(A) + x(F), 0)
G_2: (x(F_2), y(E))
poly2, f_2, g_2, f_3, h_2 = Polygon(F, G_2, F_2, H)
text3: "\frac{" + Zähler_2 + "}{" + N + "}"
text4: "Zähler= " + Zähler_2
text6: "Nenner= " + N