Scythe-1.0.3
double scythe::gammafn ( double  x) [inline]

The gamma function.

Computes the gamma function, evaluated at x.

Parameters:
xThe value to compute gamma at.
See also:
lngammafn(double x)
pgamma(double x, double shape, double scale)
dgamma(double x, double shape, double scale)
rng::rgamma(double shape, double scale)
Exceptions:
scythe_range_error(Level 1)
scythe_precision_error(Level 1)

References exp(), fabs(), log(), SCYTHE_CHECK_10, and sin().

Referenced by betafn(), lnbetafn(), and lngammafn().