You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
350 B

const int x = 5;
// Is probability of throwing x > 0.1?
// RESULT: true
P>0.1 [ F s=7 & d=x ]
// Probability of throwing 6?
// RESULT: 0.16666650772094727
P=? [ F s=7 & d=6 ]
// Probability of throwing x?
// RESULT: 0.16666650772094727
P=? [ F s=7 & d=x ]
// Expected number of coin flips to complete?
// RESULT: 3.6666650772094727
R=? [ F s=7 ]