the chance of rain on any given day in tel - aviv is 50 % . what is the probability q that it rained in tel - aviv on exactly 4 out of 6 randomly chosen days ?
"chances of rain on exactly 4 days and not rain on 2 days = ( 1 / 2 ) ^ 4 * ( 1 / 2 ) ^ 2 = 1 / 64 chosing 4 days out of 6 = 6 ! / ( 4 ! * 2 ! ) = 15 chances of rain on exactly 4 days out of 6 days q = 15 / 64 ans a it is ."
divide(choose(6, 4), inverse(multiply(power(divide(const_1, const_2), 4), power(divide(const_1, const_2), const_2))))