time-to-botec/example.squiggle

6 lines
121 B
Plaintext
Raw Normal View History

2022-11-30 01:35:53 +00:00
p_a = 0.8
p_b = 0.5
p_c = p_a * p_b
result = mx([0, 1, 1 to 3, 2 to 10], [(1 - p_c), p_c/2, p_c/4, p_c/4 ])
mean(result)