14#include "CLHEP/Random/Stat.h"
15#include "CLHEP/Random/defs.h"
29 static const double cof[6] = {76.18009172947146,-86.50532032941677,
30 24.01409824083091, -1.231739572450155,
31 0.1208650973866179e-2, -0.5395239384953e-5};
35 tmp -= (x + 0.5) * std::log(tmp);
36 double ser = 1.000000000190015;
38 for ( j = 0; j <= 5; j++ ) {
42 return -tmp + std::log(2.5066282746310005*ser);
static double gammln(double x)