182 *tmpd++ = F_x * *xd++ + F_y * *yd++ + F_z * *zd++;
188 F_xx,F_xy,F_xz,F_yy,F_yz,F_zz,
189 F_xxx,F_xxy,F_xxz,F_xyy,F_xyz,F_xzz,F_yyy,F_yyz,F_yzz,F_zzz);
218 cerr <<
"Bad x in routine betai" <<
endl;
219 if (
value(x) == 0.0 ||
value(x) == 1.0) bt=0.0;
223 return bt*
betacf(a,b,x)/a;
225 return 1.0-bt*
betacf(b,a,1.0-x)/b;
233 if (x < 0.0 || x > 1.0) cerr <<
"Bad x in routine betai" <<
endl;
234 if (x == 0.0 || x == 1.0) bt=0.0;
238 return bt*
betacf(a,b,x)/a;
240 return 1.0-bt*
betacf(b,a,1.0-x)/b;
257 for (m=1;m<=
MAXIT;m++)
260 aa=m*(b-m)*x/((qam+m2)*(a+m2));
267 aa = -(a+m)*(qab+m)*x/((a+m2)*(qap+m2));
280 cerr <<
"mum interations exceeded " <<
endl;
310 for (m=1;m<=
MAXIT;m++)
313 aa=m*(b-m)*x/((qam+m2)*(a+m2));
320 aa = -(a+m)*(qab+m)*x/((a+m2)*(qap+m2));
333 cerr <<
"mum interations exceeded " <<
endl;
342 const double lpp =0.9189385332046727417803297;
344 const double c[9]={0.99999999999980993,
350 -0.13857109526572012,
351 9.9843695780195716e-6,
352 1.5056327351493116e-7};
355 for (
int i=1;i<=n+1;i++)
367 const double lpi =1.1447298858494001741434272;
368 const double pi =3.1415926535897932384626432;
df1b2_gradlist * f1b2gradlist
double gammln(double xx)
Log gamma function.
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
double * get_u_xxy() const
double inv_cumd_beta(double _a, double _b, double _y)
double * get_u_zz() const
double * get_u_yzz() const
double qbeta(double x, double a, double b, double eps)
d3_array sin(const d3_array &arr3)
Returns d3_array results with computed sin from elements in arr3.
double * get_u_xyy() const
df1_two_variable fabs(const df1_two_variable &x)
double * get_u_xz() const
d3_array cube(const d3_array &m)
Description not yet available.
Description not yet available.
double inv_cumd_beta_stable(double a, double b, double y, double eps)
prnstream & endl(prnstream &)
double * get_u_yz() const
Description not yet available.
static int no_derivatives
double * get_u_xx() const
Description not yet available.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
double betai(const double a, const double b, const double x, int maxit)
Incomplete beta function for constant objects.
double * get_u_xy() const
int write_pass1(const df1b2variable *px, const df1b2variable *py, df1b2variable *pz, df1b2function2 *pf)
Description not yet available.
Float betacf(Float a, Float b, Float x, int MAXIT)
Description not yet available.
double * get_u_yy() const
double * get_u_yyy() const
Description not yet available.
double * get_u_xzz() const
double * get_u_zzz() const
double * get_u_xyz() const
double * get_u_xxz() const
dvector value(const df1_one_vector &v)
double * get_u_xxx() const
static dvariable gammlnguts(const prevariable &_z)
double * get_u_yyz() const
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.