Re: Another conversion to C or Java...



x = p1*p2*...*p15;
y = (1-p1)*(1-p2)*...*(1-p15);
return x/(x+y);

.