Computes the lower/upper tail probability for the gamma distribution with real degrees of freedom, with parameters a and b.
double prob = gamcdf(double g, double a, double b[, int tail])
g
a
of the gamma distribution, must be positive(
).b
of the gamma distribution, must be positive(
).tail
prob
gamcdf(150,2,2,1)=; //ANS: 2.0357640909741E-31