Tehted murdudega: liitmine, lahutamine, korrutamine ja jagamine

n1 = 3 (slider from 0 to 10, step 1)
a = 6 (slider from 1 to 10, step 1)
O = Intersect(xAxis, yAxis)
c = Circle(O, 3)
A = Intersect(c, xAxis, 2)
A' = Rotate(A, (360°) / a, O)
A'' = Rotate(A', (360°) / a, O)
A''' = Rotate(A'', (360°) / a, O)
B = Rotate(A''', (360°) / a, O)
B' = Rotate(B, (360°) / a, O)
B'' = Rotate(B', (360°) / a, O)
B''' = Rotate(B'', (360°) / a, O)
C = Rotate(B''', (360°) / a, O)
C' = Rotate(C, (360°) / a, O)
f = Segment(A, O)
g = Segment(O, A')
h = Segment(O, A'')
i = Segment(O, A''')
j = Segment(O, B)
k = Segment(O, B')
l = Segment(O, B'')
m = Segment(O, B''')
p = Segment(O, C)
q = Segment(O, C')
A'_{1} = Rotate(A, (360° * n1 / a), O)
α = Angle(A, O, A'_{1})
d = CircleSector(O, A, A'_{1})
tekst1: "\frac{" + (LaTeX[n1]) + "}{" + (LaTeX[a]) + "}"
O' = Point(xAxis)
e = Circle(O', 3)
E = Intersect(e, xAxis, 2)
n2 = 4 (slider from 0 to 10, step 1)
b = 5 (slider from 1 to 10, step 1)
E' = Rotate(E, (360°) / b, O')
E'' = Rotate(E', (360°) / b, O')
E''' = Rotate(E'', (360°) / b, O')
F = Rotate(E''', (360°) / b, O')
F' = Rotate(F, (360°) / b, O')
F'' = Rotate(F', (360°) / b, O')
F''' = Rotate(F'', (360°) / b, O')
G = Rotate(F''', (360°) / b, O')
G' = Rotate(G, (360°) / b, O')
n = Segment(O', E)
r = Segment(O', E')
s = Segment(O', E'')
t = Segment(O', E''')
f_1 = Segment(O', F)
g_1 = Segment(O', F')
h_1 = Segment(O', F'')
i_1 = Segment(O', F''')
j_1 = Segment(O', G)
k_1 = Segment(O', G')
E'_{1} = Rotate(E, (360° * n2 / b), O')
β = Angle(E, O', E'_{1})
c_1 = CircleSector(O', E, E'_{1})
tekst2: "\frac{" + (LaTeX[n2]) + "}{" + (LaTeX[b]) + "}"
tekst4: "Summa=\frac{" + (LaTeX[n1]) + "}{" + (LaTeX[a]) + "}+\frac{" + (LaTeX[n2]) + "}{" + (LaTeX[b]) + "}=\frac{" + (LaTeX[n1]) + "×" + (LaTeX[b]) + "+" + (LaTeX[n2]) + "×" + (LaTeX[a]) + "}{" + (LaTeX[a]) + "×" + (LaTeX[b]) + "}"
tekst5: "Lahutamine=\frac{ " + (LaTeX[n1]) + "}{ " + (LaTeX[a]) + "}+\frac{ " + (LaTeX[n2]) + "}{ " + (LaTeX[b]) + "}=\frac{ " + (LaTeX[n1]) + "× " + (LaTeX[b]) + "- " + (LaTeX[n2]) + "×" + (LaTeX[a]) + " }{ " + (LaTeX[a]) + "×" + (LaTeX[b]) + " }"
tekst6: "Korrutamine=\frac{" + (LaTeX[n1]) + "}{" + (LaTeX[a]) + "}×\frac{" + (LaTeX[n2]) + "}{" + (LaTeX[b]) + "}=\frac{" + (LaTeX[n1]) + "×" + (LaTeX[n2]) + "}{" + (LaTeX[a]) + "×" + (LaTeX[b]) + "}"
tekst7: "Jagamine=\frac{" + (LaTeX[n1]) + " }{ " + (LaTeX[a]) + "}÷\frac{ " + (LaTeX[n2]) + "}{ " + (LaTeX[b]) + "}=\frac{ " + (LaTeX[n1]) + "×" + (LaTeX[b]) + " }{ " + (LaTeX[a]) + "× " + (LaTeX[n2]) + ""