*/
public static void main(String[] args) throws Exception {
if(true) {
long time = System.currentTimeMillis();
BinomialDistribution bd = new BinomialDistributionImpl(10000000, 0.5);
double d = bd.cumulativeProbability(3456789);
//for(int i=-1;i<=100000;i++) {
// double d = bd.cumulativeProbability(i);
// //System.out.println(i + "\t" + bd.cumulativeProbability(i) + "\t" + (1.0 - bd.cumulativeProbability(i)));
//}
System.out.println(System.currentTimeMillis() - time);