Gamma function (x)
double gamma( double x )
Returns the value of the Gamma function (x)
EX1
void gamma_ex1() { double x[5] = {1.0,1.25,1.5,1.75,2.0} double dResult[5]; for(int ii=0;ii<5; ii++) { dResult[ii] = gamma(x[ii]); printf("%4.1f: %12.4e\n",x[ii],dResult[ii]); } }
log_gamma, incomplete_gamma
origin.h