Neu

Einsatz;

Gewinnfaktor1:

Gewinnfaktor2:

gewinnfaktor2 = NaN
gewinnfaktor1 = NaN
einsatz = NaN
a = 1 (slider from 1 to 12, step 1)
b = 3 (slider from 1 to 12, step 1)
c: 12 - (a + b)
winkela: (30° * a)
winkelb: (30° * b)
winkelc: (30° * c)
r = 2
M = (-2, 0)
A: ((r * cos(winkela)), (r * sin(winkela))) + M
B: ((r * cos(winkela + winkelb)), (r * sin(winkela + winkelb))) + M
C: ((r * cos(winkela + winkelb + winkelc)), (r * sin(winkela + winkelb + winkelc))) + M
kA = CircleSector(M, C, A)
kB = CircleSector(M, A, B)
kC = CircleSector(M, B, C)
n = 10 (slider from 10 to 10000, step 10)
Liste1 = Sequence(Random[0, 360], i, 1, n)
klassenbreiten: {0, (a * 30), ((a + b) * 30), ((a + b + c) * 30)}
Liste2 = Frequency(klassenbreiten, Liste1)
Liste3: Liste2 / n
ergebnisse = Sequence(Segment[(i, 0), (i, (Element[Liste3, i] * 10))], i, 1, 3)
Textfeld1 = Textfield(einsatz)
Textfeld2 = Textfield(gewinnfaktor1)
Textfeld3 = Textfield(gewinnfaktor2)
Text1: "" + (Element[Liste2, 1]) + ""
Text2: "" + (Element[Liste2, 2]) + ""
Text3: "" + (Element[Liste2, 3]) + ""
Vieleck1, d, e, f, g = Polygon((0.8, 0), (1.2, 0), (1.2, a / 1.2), (0.8, a / 1.2))
Vieleck2, h, i, j, k = Polygon((1.8, 0), (2.2, 0), (2.2, b / 1.2), (1.8, b / 1.2))
Vieleck3, l, m, p, q = Polygon((2.8, 0), (3.2, 0), (3.2, c / 1.2), (2.8, c / 1.2))
s = Segment((1, 0), (1, Element[ergebnisse, 1]))
t = Segment((2, 0), (2, Element[ergebnisse, 2]))
a_1 = Segment((3, 0), (3, Element[ergebnisse, 3]))
b_1 = Segment((0.5, 0), (4, 0))