SUMA

DIFERENCIA

PRODUCTO

SUMA

yB1 = 0 (slider from -2.85 to 2.85, step 0.95)
xB1 = 10.48 (slider from 8.38 to 10.48, step 1.05)
yA1 = 0 (slider from -2.85 to 2.85, step 0.95)
xA1 = -4.2 (slider from -4.2 to -2.1, step 1.05)
Juego = 1 (slider from 1 to 20, step 1)
A1: (xA1, yA1)
cA1 = Circle(A1, 0.5)
B1: (xB1, yB1)
cB1 = Circle(B1, 0.5)
xA2 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA3 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA4 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA5 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA6 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA7 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA8 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA9 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA10 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA11 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA12 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA13 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA14 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA15 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA16 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA17 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA18 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA19 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xA20 = -4.2 (slider from -4.2 to -2.1, step 1.05)
xB2 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB3 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB4 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB5 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB6 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB7 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB8 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB9 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB10 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB11 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB12 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB13 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB14 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB15 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB16 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB17 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB18 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB19 = 10.48 (slider from 8.38 to 10.48, step 1.05)
xB20 = 10.48 (slider from 8.38 to 10.48, step 1.05)
yA2 = 0 (slider from -2.85 to 2.85, step 0.95)
yA3 = 0 (slider from -2.85 to 2.85, step 0.95)
yA4 = 0 (slider from -2.85 to 2.85, step 0.95)
yA5 = 0 (slider from -2.85 to 2.85, step 0.95)
yA6 = 0 (slider from -2.85 to 2.85, step 0.95)
yA7 = 0 (slider from -2.85 to 2.85, step 0.95)
yA8 = 0 (slider from -2.85 to 2.85, step 0.95)
yA9 = 0 (slider from -2.85 to 2.85, step 0.95)
yA10 = 0 (slider from -2.85 to 2.85, step 0.95)
yA11 = 0 (slider from -2.85 to 2.85, step 0.95)
yA12 = 0 (slider from -2.85 to 2.85, step 0.95)
yA13 = 0 (slider from -2.85 to 2.85, step 0.95)
yA14 = 0 (slider from -2.85 to 2.85, step 0.95)
yA15 = 0 (slider from -2.85 to 2.85, step 0.95)
yA16 = 0 (slider from -2.85 to 2.85, step 0.95)
yA17 = 0 (slider from -2.85 to 2.85, step 0.95)
yA18 = 0 (slider from -2.85 to 2.85, step 0.95)
yA19 = 0 (slider from -2.85 to 2.85, step 0.95)
yA20 = 0 (slider from -2.85 to 2.85, step 0.95)
yB2 = 0 (slider from -2.85 to 2.85, step 0.95)
yB3 = 0 (slider from -2.85 to 2.85, step 0.95)
yB4 = 0 (slider from -2.85 to 2.85, step 0.95)
yB5 = 0 (slider from -2.85 to 2.85, step 0.95)
yB6 = 0 (slider from -2.85 to 2.85, step 0.95)
yB7 = 0 (slider from -2.85 to 2.85, step 0.95)
yB8 = 0 (slider from -2.85 to 2.85, step 0.95)
yB9 = 0 (slider from -2.85 to 2.85, step 0.95)
yB10 = 0 (slider from -2.85 to 2.85, step 0.95)
yB11 = 0 (slider from -2.85 to 2.85, step 0.95)
yB12 = 0 (slider from -2.85 to 2.85, step 0.95)
yB13 = 0 (slider from -2.85 to 2.85, step 0.95)
yB14 = 0 (slider from -2.85 to 2.85, step 0.95)
yB15 = 0 (slider from -2.85 to 2.85, step 0.95)
yB16 = 0 (slider from -2.85 to 2.85, step 0.95)
yB17 = 0 (slider from -2.85 to 2.85, step 0.95)
yB18 = 0 (slider from -2.85 to 2.85, step 0.95)
yB19 = 0 (slider from -2.85 to 2.85, step 0.95)
yB20 = 0 (slider from -2.85 to 2.85, step 0.95)
A2: (xA2, yA2)
A3: (xA3, yA3)
A4: (xA4, yA4)
A5: (xA5, yA5)
A6: (xA6, yA6)
A7: (xA7, yA7)
A8: (xA8, yA8)
A9: (xA9, yA9)
A10: (xA10, yA10)
A11: (xA11, yA11)
A12: (xA12, yA12)
A13: (xA13, yA13)
A14: (xA14, yA14)
A15: (xA15, yA15)
A16: (xA16, yA16)
A17: (xA17, yA17)
A18: (xA18, yA18)
A19: (xA19, yA19)
A20: (xA20, yA20)
B2: (xB2, yB2)
B3: (xB3, yB3)
B4: (xB4, yB4)
B5: (xB5, yB5)
B6: (xB6, yB6)
B7: (xB7, yB7)
B8: (xB8, yB8)
B9: (xB9, yB9)
B10: (xB10, yB10)
B11: (xB11, yB11)
B12: (xB12, yB12)
B13: (xB13, yB13)
B14: (xB14, yB14)
B15: (xB15, yB15)
B16: (xB16, yB16)
B17: (xB17, yB17)
B18: (xB18, yB18)
B19: (xB19, yB19)
B20: (xB20, yB20)
cA2 = Circle(A2, 0.5)
cA3 = Circle(A3, 0.5)
cA4 = Circle(A4, 0.5)
cA5 = Circle(A5, 0.5)
cA6 = Circle(A6, 0.5)
cA7 = Circle(A7, 0.5)
cA8 = Circle(A8, 0.5)
cA9 = Circle(A9, 0.5)
cA10 = Circle(A10, 0.5)
cA11 = Circle(A11, 0.5)
cA12 = Circle(A12, 0.5)
cA13 = Circle(A13, 0.5)
cA14 = Circle(A14, 0.5)
cA15 = Circle(A15, 0.5)
cA16 = Circle(A16, 0.5)
cA17 = Circle(A17, 0.5)
cA18 = Circle(A18, 0.5)
cA19 = Circle(A19, 0.5)
cA20 = Circle(A20, 0.5)
cB2 = Circle(B2, 0.5)
cB3 = Circle(B3, 0.5)
cB4 = Circle(B4, 0.5)
cB5 = Circle(B5, 0.5)
cB6 = Circle(B6, 0.5)
cB7 = Circle(B7, 0.5)
cB8 = Circle(B8, 0.5)
cB9 = Circle(B9, 0.5)
cB10 = Circle(B10, 0.5)
cB11 = Circle(B11, 0.5)
cB12 = Circle(B12, 0.5)
cB13 = Circle(B13, 0.5)
cB14 = Circle(B14, 0.5)
cB15 = Circle(B15, 0.5)
cB16 = Circle(B16, 0.5)
cB17 = Circle(B17, 0.5)
cB18 = Circle(B18, 0.5)
cB19 = Circle(B19, 0.5)
lista1a = Sequence(Random[-9, 9], t, 1, 20)
lista1b = Sequence(Random[-9, 9], t, 1, 20)
cB20 = Circle(B20, 0.5)
lista2a = Sequence(If[Element[lista1a, t] < Element[lista1b, t], Element[lista1b, t], Element[lista1a, t]], t, 1, 20)
lista2b = Sequence(If[Element[lista1a, t] > Element[lista1b, t], Element[lista1b, t], Element[lista1a, t]], t, 1, 20)
suma = Sequence(Element[lista2a, t] + Element[lista2b, t], t, 1, 20)
diferencia = Sequence(Element[lista2a, t] - Element[lista2b, t], t, 1, 20)
producto = Sequence((Element[lista2a, t] * Element[lista2b, t]), t, 1, 20)
p = Element(producto, Juego)
s = Element(suma, Juego)
d = Element(diferencia, Juego)
Tipo = 1 (slider from 1 to 3, step 1)
arriba = If(Tipo ≟ 1, s, p)
abajo = If(Tipo ≟ 2, s, d)
incArriba = If(arriba > 9 ∨ arriba < 0, 0.2, 0)
texto1 = Text("" + arriba, (3.2 - incArriba, 2.32))
incAbajo = If(abajo > 9 ∨ abajo < 0, 0.2, 0)
texto6 = Text("" + abajo, (3.2 - incAbajo, 2.32 - 5))
entradaA = If(Object["yA" + Juego] ≟ 0, 0, If[Object["yA" + Juego] > 0, (3 * Object["yA" + Juego] / 0.95) + Object["xA" + Juego] / 1.05 + 2, (3 * Object["yA" + Juego] / 0.95) + Object["xA" + Juego] / 1.05 + 4])
entradaAlista = Sequence(If[Object["yA" + (t)] ≟ 0, 0, If[Object["yA" + (t)] > 0, (3 * Object["yA" + (t)] / 0.95) + Object["xA" + (t)] / 1.05 + 2, (3 * Object["yA" + (t)] / 0.95) + Object["xA" + (t)] / 1.05 + 4]], t, 1, 20)
entradaB = If(Object["yB" + Juego] ≟ 0, 0, If[Object["yB" + Juego] > 0, (3 * Object["yB" + Juego] / 0.95) + round((Object["xB" + Juego] - 12.58) / 1.05) + 2, (3 * Object["yB" + Juego] / 0.95) + round((Object["xB" + Juego] - 12.58) / 1.05) + 4])
entradaBlista = Sequence(If[Object["yB" + (t)] ≟ 0, 0, If[Object["yB" + (t)] > 0, (3 * Object["yB" + (t)] / 0.95) + round((Object["xB" + (t)] - 12.58) / 1.05) + 2, (3 * Object["yB" + (t)] / 0.95) + round((Object["xB" + (t)] - 12.58) / 1.05) + 4]], t, 1, 20)
a0lista = Sequence(Element[entradaAlista, t], t, 1, 20)
b0lista = Sequence(Element[entradaBlista, t], t, 1, 20)
alista = Sequence(If[Element[a0lista, t] > Element[b0lista, t], Element[a0lista, t], Element[b0lista, t]], t, 1, 20)
blista = Sequence(If[Element[a0lista, t] < Element[b0lista, t], Element[a0lista, t], Element[b0lista, t]], t, 1, 20)
coincideA = Sequence(If[Element[alista, t] ≟ Element[lista2a, t], 1, 0], t, 1, 20)
coincideB = Sequence(If[Element[blista, t] ≟ Element[lista2b, t], 1, 0], t, 1, 20)
coincidenAB = Sequence(If[Element[coincideA, t] ≟ 1 ∧ Element[coincideB, t] ≟ 1, 1, 0], t, 1, 20)
puntos: (5 * Sum[coincidenAB])
texto9: "Puntos: " + puntos
A = (-4.42, -3.16)
imagen11' = Translate(imagen11, Vector[(17 + x(A), 0)])
texto7 = Text("" + entradaA, (0.7, -0.18))
texto8 = Text("" + entradaB, (5.7, -0.18))