meep_math.cc
//TODO: cache this somewhere or we're gonna be slow
cache this somewhere or we're gonna be slow
cache this somewhere or we ' re gonna be slow
double binomial_cdf(int successes, int trials, long double p){
		long double cdf = 0.0;
		for(int i = 0; i < trials; i++){
			cdf += meep_math::binomial_pdf(i, trials, p);
		}
		return cdf;
	}
double binomial_cdf ( int successes , int trials , long double p ) { long double cdf = 0.0 ; for ( int i = 0 ; i < trials ; i ++ ) { cdf += meep_math :: binomial_pdf ( i , trials , p ) ; } return cdf ; }
TODO: cache this somewhere or we're gonna be slow
TODO : cache this somewhere or we ' re gonna be slow