Author: Daniel Mentrard

PGCD[d_1, f]

PPCM[d_1, d_2]

PGCD[d_2, f]

PGCD[nnf, f]

+

=

=

=

+

=

Esta fracción no se
 puede simplificar

Las dos fracciones 
no tienen el mismo
  dénominador

Sumamos los
numeradores

Las dos fracciones
  tienen el mismo  
    denominador

Escoged aquí las fracciones

n_2 = 200 (slider from 0 to 200, step 1)
d_1 = 156 (slider from 1 to 200, step 1)
d_2 = 164 (slider from 1 to 200, step 1)
f = LCM(d_1, d_2)
g = GCD(d_2, f)
nn2: n_2 * f / g
n_1 = 104 (slider from 0 to 200, step 1)
e = GCD(f, d_1)
nn1: n_1 * f / e
a = Random(2.0, 15.0)
c = RandomNormal(2.0, 4.0)
b = RandomBinomial(2.0, 3.0)
d = Binomial(4.0, 2.0)
texte9: "" + e
texte11: "" + f
texte13: " \frac{ " + n_2 + " }{" + d_2 + " } "
texte15: " \frac{ " + nn2 + " }{" + f + " } "
texte1: " \frac{ " + nn1 + " + " + nn2 + "}{" + f + " } "
nnf: nn1 + nn2
texte2: " \frac{ " + nnf + "}{" + f + "} "
h = GCD(nnf, f)
texte4: " \frac{ " + (nnf / h) + "}{" + (f / h) + "} "
texte12: " \frac{ " + n_1 + " }{" + d_1 + " } "
texte14: " \frac{ " + nn1 + " }{" + f + " } "
A = (-3.5, 2.5)
B = (18, 2.5)
i = Segment(A, B)
C = Point(i)
D = (1.5, 0.5)
j = Segment(C, D)
E = (-3.5, 0.5)
k = Segment(A, E)
l = Segment(E, D)
F = (7, 0.5)
m = Segment(D, F)
G = Point(i)
n = Segment(F, G)
H = (11.5, 0.5)
p = Segment(F, H)
I = Point(i)
q = Segment(I, H)
J = (18, 0.5)
r = Segment(H, J)
s = Segment(J, B)
text1: "" + h
texte21: "Esta fracción puede
simplificarse por " + h
texte24: "Hay que reducir al
mismo denominador
      Aquí es " + f
text2: "" + g