21 double z =
value(_zz);
23 const double lpp =0.9189385332046727417803297;
25 const double c[9]={0.99999999999980993,
32 9.9843695780195716e-6,
33 1.5056327351493116e-7};
39 for (
unsigned int i=1;i<=n+1;i++)
41 double zinv=1.0/(z+i);
45 x2dot+=2.0*c[i]*
cube(zinv);
46 x3dot-=6.0*c[i]*
fourth(zinv);
50 double ans= lpp + (z+0.5)*
log(t) -t +
log(x);
55 double dfx=
log(t) + (z+0.5)/t -1.0 +xdot/
x;
56 double d2f=2.0/t -(z+0.5)/
square(t)+x2dot/x
58 double d3f=-3.0/
square(t) + 2.0*(z+0.5)/
cube(t)+ x3dot/x
61 double * xd=zz.get_u_dot();
80 const double lpi =1.1447298858494001741434272;
81 const double pi =3.1415926535897932384626432;
100 for(
int i=from; i<=to; ++i){
double factln(double n)
Log-factorial .
double log_comb(double n, double k)
Log of the binomial coefficent; i.e log of 'n choose k'.
df1b2_gradlist * f1b2gradlist
double gammln(double xx)
Log gamma function.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Description not yet available.
d3_array sin(const d3_array &arr3)
Returns d3_array results with computed sin from elements in arr3.
d3_array cube(const d3_array &m)
Description not yet available.
Description not yet available.
static int no_derivatives
int write_pass1(const df1b2variable *px, const df1b2variable *py, df1b2variable *pz, df1b2function2 *pf)
Description not yet available.
Description not yet available.
df1b2variable gammlnguts(const df1b2variable _zz)
Description not yet available.
dvector value(const df1_one_vector &v)
double square(const double value)
Return square of value; constant object.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double fourth(const double m)
Fourth power of a number; constant objects.