22 double get_values(
double x,
double y,
int print_switch);
43 for (i=1;i<=
ITMAX;i++) {
56 cerr <<
"a too large, ITMAX too small in gcf" <<
endl;
57 gammcf=
exp(-x+a*
log(x)-(gln))*h;
76 if (
value(x) <= 0.0) {
78 cerr <<
"x less than 0 in routine gser" <<
endl;
86 for (n=1;n<=
ITMAX;n++) {
91 gamser=sum*
exp(-x+a*
log(x)-(gln));
95 cerr <<
"a too large, ITMAX too small in routine gser" <<
endl;
105 cerr <<
"Invalid arguments in routine gammp" <<
endl;
107 gser(gamser,a,x,gln);
double gammln(double xx)
Log gamma function.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
double cumd_gamma(double x, double a)
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
df1_two_variable fabs(const df1_two_variable &x)
prnstream & endl(prnstream &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
void gcf(double &gammcf, double a, double x, double &gln)
Incomplete gamma function.
void gser(double &gamser, double a, double x, double &gln)
Incomplete gamma function.
double get_values(double x, double y, int print_switch)
dvector value(const df1_one_vector &v)
Fundamental data type for reverse mode automatic differentiation.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.