8 #include "../linad99/betacf_val.hpp"
16 Float a_ (
value(a), 0);
17 Float b_ (
value(b), 1);
18 Float x_ (
value(x), 2);
19 Float ans = betacf<Float>(a_, b_, x_,
MAXIT);
20 double val=ans.value.value.value;
33 *tmpd++ = der1[0] * *xd++ + der1[1] * *yd++ + der1[2] * *zd++;
38 der1[0],der1[1],der1[2],
39 der2[0],der2[1],der2[2],der2[4],der2[5],der2[8],
40 der3[0],der3[1],der3[2],der3[4],der3[5],der3[8],der3[13],der3[14],der3[17],der3[26]);
60 if (x < 0.0 || x > 1.0) cerr <<
"Bad x in routine betai" <<
endl;
61 if (x == 0.0 || x == 1.0) bt=double(0.0);
65 return bt*
betacf(a,b,x,maxit)/a;
67 return 1.0-bt*
betacf(b,a,1.0-x,maxit)/b;
82 return betai(a,b,x,maxit);
101 return betacf(a,b,xx,MAXIT);
108 if (
value(x) < 0.0 ||
value(x) > 1.0) cerr <<
"Bad x in routine betai" <<
endl;
109 if (
value(x) == 0.0 ||
value(x) == 1.0) bt=double(0.0);
113 return bt*
betacf(a,b,x,maxit)/a;
115 return 1.0-bt*
betacf(b,a,1.0-x,maxit)/b;
df1b2_gradlist * f1b2gradlist
double gammln(double xx)
Log gamma function.
double pbeta(const double x, const double a, const double b, int maxit)
beta distribution function for constant objects (alias of ibeta function with same arguments order as...
void val(const adstring &s, int &v, int &code)
Description not yet available.
prnstream & endl(prnstream &)
static int no_derivatives
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.
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.
dvector value(const df1_one_vector &v)
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.