:

:

Se cogen

Se sacan al azar:

Copas

clase1

No copas

clase2

A = (-2, 1)
B = (1.02, 3.86)
a = Segment(A, B)
b: y = y(A)
A' = Mirror(A, b)
B' = Mirror(B, b)
a' = Segment(A', B')
C = (4.5, 5.26)
c = Segment(B, C)
d: y = y(B)
B'_1 = Mirror(B, d)
C' = Mirror(C, d)
c' = Segment(B'_1, C')
B'_2 = Mirror(B, b)
C'_1 = Mirror(C, b)
c'_1 = Segment(B'_2, C'_1)
D = Mirror(B'_1, b)
C'' = Mirror(C', b)
c'' = Segment(D, C'')
e: y = y(C)
E = (8, 6)
f = Segment(C, E)
C'_2 = Mirror(C, e)
E' = Mirror(E, e)
f' = Segment(C'_2, E')
C'_3 = Mirror(C, d)
E'_1 = Mirror(E, d)
f'_1 = Segment(C'_3, E'_1)
F = Mirror(C'_2, d)
E'' = Mirror(E', d)
f'' = Segment(F, E'')
C'_4 = Mirror(C, b)
E'_2 = Mirror(E, b)
f'_2 = Segment(C'_4, E'_2)
G = Mirror(C'_2, b)
E''_1 = Mirror(E', b)
f''_1 = Segment(G, E''_1)
H = Mirror(C'_3, b)
I = Mirror(E'_1, b)
g = Segment(H, I)
F' = Mirror(F, b)
E''' = Mirror(E'', b)
f''' = Segment(F', E''')
C''_1 = Mirror(C', b)
chicas = 10 (slider from 1 to 1000, step 1)
chicos = 30 (slider from 1 to 1000, step 1)
CajaDeEntrada1 = Textfield(chicas)
CajaDeEntrada2 = Textfield(chicos)
secogen = 2 (slider from 1 to 3, step 1)
CajaDeEntrada3 = Textfield(secogen)
S = Midpoint(a)
P = Midpoint(a')
SS = Midpoint(c)
SP = Midpoint(c')
PS = Midpoint(c'')
PP = Midpoint(c'_1)
SSS = Midpoint(f)
SSP = Midpoint(f')
SPS = Midpoint(f'')
SPP = Midpoint(f'_1)
PSS = Midpoint(g)
PSP = Midpoint(f''')
PPS = Midpoint(f''_1)
PPP = Midpoint(f'_2)
total: chicas + chicos
tA: "\frac{" + (LaTeX[chicas]) + "}{" + (LaTeX[total]) + "}"
tO: "\frac{" + (LaTeX[chicos]) + "}{" + (LaTeX[total]) + "}"
tOO: "\frac{" + (LaTeX[chicos - 1]) + "}{" + (LaTeX[total - 1]) + "}"
tOA: "\frac{" + (LaTeX[chicas]) + "}{" + (LaTeX[total - 1]) + "}"
tAA: "\frac{" + (LaTeX[chicas - 1]) + "}{" + (LaTeX[total - 1]) + "}"
tAO: "\frac{" + (LaTeX[chicos]) + "}{" + (LaTeX[total - 1]) + "}"
h = -0.96 (slider from -1.11 to -0.18, step 0.005)
ES1: (15, -4.4)
ES2: ES1 + (h * (15, 0))
ES3: ES1 + (0, 10.5)
ES4: (x(ES2), y(ES3))
polígono1, es1, es2, es4, es3 = Polygon(ES1, ES2, ES4, ES3)
tAOO: "\frac{" + (LaTeX[chicos - 1]) + "}{" + (LaTeX[total - 2]) + "}"
tAOA: "\frac{" + (LaTeX[chicas - 1]) + "}{" + (LaTeX[total - 2]) + "}"
tOAO: "\frac{" + (LaTeX[chicos - 1]) + "}{" + (LaTeX[total - 2]) + "}"
tAAO: "\frac{" + (LaTeX[chicos]) + "}{" + (LaTeX[total - 2]) + "}"
tOAA: "\frac{" + (LaTeX[chicas - 1]) + "}{" + (LaTeX[total - 2]) + "}"
tAAA: "\frac{" + (LaTeX[chicas - 2]) + "}{" + (LaTeX[total - 2]) + "}"
tOOO: "\frac{" + (LaTeX[chicos - 2]) + "}{" + (LaTeX[total - 2]) + "}"
tOOA: "\frac{" + (LaTeX[chicas]) + "}{" + (LaTeX[total - 2]) + "}"
texOO: tO + "·" + tOO + " = " + (FractionText[(chicos * (chicos - 1) / ((total * (total - 1))))]) + " = " + ((chicos * (chicos - 1) / ((total * (total - 1)))))
texAA: tA + "·" + tAA + " = " + (FractionText[(chicas * (chicas - 1) / ((total * (total - 1))))]) + " = " + ((chicas * (chicas - 1) / ((total * (total - 1)))))
texOA: tO + "·" + tOA + " = " + (FractionText[(chicas * chicos / ((total * (total - 1))))]) + " = " + ((chicas * chicos / ((total * (total - 1)))))
texAO: tA + "·" + tAO + " = " + (FractionText[(chicas * chicos / ((total * (total - 1))))]) + " = " + ((chicos * chicas / ((total * (total - 1)))))
CasillaDeEntrada1 = Textfield(clase1)
CasillaDeEntrada2 = Textfield(clase2)
texAAA: "" + (LaTeX[tA]) + "·" + (LaTeX[tAA]) + "·" + (LaTeX[tAAA]) + " = " + (LaTeX[FractionText[((chicas * (chicas - 1)) * (chicas - 2) / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicas - 1)) * (chicas - 2) / (((total * (total - 1)) * (total - 2))))]) + ""
texAAO: "" + (LaTeX[tA]) + "·" + (LaTeX[tAA]) + "·" + (LaTeX[tAAO]) + " = " + (LaTeX[FractionText[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texAOA: "" + (LaTeX[tA]) + "·" + (LaTeX[tAA]) + "·" + (LaTeX[tAAO]) + " = " + (LaTeX[FractionText[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texAOO: "" + (LaTeX[tA]) + "·" + (LaTeX[tAO]) + "·" + (LaTeX[tAOO]) + " = " + (LaTeX[FractionText[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texOAA: "" + (LaTeX[tO]) + "·" + (LaTeX[tOA]) + "·" + (LaTeX[tOAA]) + " = " + (LaTeX[FractionText[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicas - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texOAO: "" + (LaTeX[tO]) + "·" + (LaTeX[tOA]) + "·" + (LaTeX[tOAO]) + " = " + (LaTeX[FractionText[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texOOA: "" + (LaTeX[tO]) + "·" + (LaTeX[tOO]) + "·" + (LaTeX[tOOA]) + " = " + (LaTeX[FractionText[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicas * (chicos - 1)) * chicos / (((total * (total - 1)) * (total - 2))))]) + ""
texOOO: "" + (LaTeX[tO]) + "·" + (LaTeX[tOO]) + "·" + (LaTeX[tOOO]) + " = " + (LaTeX[FractionText[((chicos * (chicos - 1)) * (chicos - 2) / (((total * (total - 1)) * (total - 2))))]]) + " = " + (LaTeX[((chicos * (chicos - 1)) * (chicos - 2) / (((total * (total - 1)) * (total - 2))))]) + ""