32 #if defined(__DERCHECK__)
33 int mydercheckercounter=0;
44 cerr <<
"overflow in save_adpool_pointer" <<
endl;
59 cerr <<
"underflow in save_adpool_pointer" <<
endl;
77 cerr <<
"error allocating memory for "
78 "initial_df1b2params::varsptr " <<
endl;
110 cerr <<
"maximum numver of iitial_df1b2params is 1000 "
122 num_initial_df1b2params_sav=0;
162 #if defined(__DERCHECK__)
210 #if defined(__DERCHECK__)
212 mydercheckercounter--;
216 if (xcount > 99999999) cout << xcount <<
endl;
239 #if defined(__DERCHECK__)
241 mydercheckercounter=0;
253 #if defined(__DERCHECK__)
255 mydercheckercounter++;
277 while(++icount<ncount);
286 cerr <<
"illega value for df1b2variable::passnumber "
307 return double(1.0)/(1+
square(x));
335 return double(2.0)*y*(double(1.0)+
square(y));
356 return double(2.0) * (double(1.0)+double(3.0)*y) * (
double(1) + y);
370 return double(1.0)/
x;
379 return double(-1.0)/(x*
x);
388 return double(2.0)/(x*x*
x);
397 return double(-6.0)/(x*x*x*
x);
436 return *
this=*
this*v;
445 return *
this=*
this/v;
480 return exp(b)*(double(1.)+double(2.)*(x-b))/(double(1.)+x-b);
484 return exp(-b)*(double(1.)-x-b)/(
double(1.)+double(2.)*(-x-b));
500 return exp(b)*(double(1.)+double(2.)*(x-b))/(double(1.)+x-b);
504 return exp(-b)*(double(1.)-x-b)/(
double(1.)+double(2.)*(-x-b));
676 return 2.0*x/(y*y*y);
730 return -6.0*x/(y*y*y*y);
double ADthree_square_fun(double x)
Description not yet available.
static int num_initial_df1b2params_sav
d3_array tan(const d3_array &arr3)
Returns d3_array results with computed tan from elements in arr3.
df1b2_gradlist * f1b2gradlist
initial_df1b2params(void)
Description not yet available.
double ADtwo_id_fun(double x)
Description not yet available.
virtual void add_to_list(void)
Description not yet available.
df1b2function2 ADf1b2_product(ADproduct_fun, ADsecond_arg, ADfirst_arg, ADzero_fun, AD1_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun,"product")
double AD_div_12(double x, double y)
Description not yet available.
double ADzero_fun(double x, double y)
Description not yet available.
double AD_minus_arg_inv2(double x)
Description not yet available.
void rewind(void)
Rewind buffer.
static const int adpool_stack_size
double AD_df3_tan(double x)
Description not yet available.
static void save_adpool_pointer(void)
Description not yet available.
double AD_minus6_arg_inv4(double x)
Description not yet available.
double AD_div_1(double x, double y)
Description not yet available.
double ADfirst_arg(double x, double y)
Description not yet available.
double ADsecond_arg_plus1(double x, double y)
Description not yet available.
void restore_end(void)
Restore end.
df1_one_variable atan(const df1_one_variable &x)
double ADdiff_fun(double x, double y)
Description not yet available.
double ADsecond_arg(double x, double y)
Description not yet available.
double AD_div_22(double x, double y)
Description not yet available.
d3_array sin(const d3_array &arr3)
Returns d3_array results with computed sin from elements in arr3.
double AD_div_222(double x, double y)
Description not yet available.
void save_end(void)
Description not yet available.
double ADsquare_fun(double x)
Description not yet available.
void save_end(void)
Description not yet available.
Description not yet available.
d3_array cube(const d3_array &m)
Description not yet available.
static initial_df1b2params ** varsptr
double AD1_fun(double x)
Description not yet available.
double ADsum_fun(double x, double y)
Description not yet available.
double AD_div_122(double x, double y)
Description not yet available.
double AD_df2_tan(double x)
Description not yet available.
double ADdiv_fun(double x, double y)
Description not yet available.
double ADm1_fun(double x, double y)
Description not yet available.
df1b2function1 ADf1b2_assign(AD_id, AD1_fun, ADzero_fun, ADzero_fun)
df1b2variable & operator/=(const df1b2variable &v)
Description not yet available.
Description not yet available.
double AD_2arg_inv3(double x)
Description not yet available.
static void save_varsptr(void)
Description not yet available.
This is a function object for a function of one variable which stores the functions which calculate t...
static int adpool_stack_pointer
double ADproduct_fun(double x, double y)
Description not yet available.
d3_array mfexp(const d3_array &m)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double AD_df1_tan(double x)
Description not yet available.
static int num_initial_df1b2params
df1b2function1 ADf1b2_inv(AD_arg_inv, AD_minus_arg_inv2, AD_2arg_inv3, AD_minus6_arg_inv4)
double ADsix_id_fun(double x)
Description not yet available.
Description not yet available.
prnstream & endl(prnstream &)
df1b2function1 ADf1b2_cube(ADcube_fun, ADthree_square_fun, ADsix_id_fun, ADsix_fun,"cube")
df1b2variable & operator*=(const df1b2variable &v)
Description not yet available.
double AD_div_2(double x, double y)
Description not yet available.
void restore_end(void)
Set to end of file ptr.
df1b2function2 ADf1b2_sum(ADsum_fun, AD1_fun, AD1_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun,"sum")
double AD_div_112(double x, double y)
Description not yet available.
fixed_list_entry * buffer
df1b2variable mult_add(const df1b2variable &x, const df1b2variable &y)
Description not yet available.
df1b2function2 ADf1b2_mult_add(ADmult_add_fun, ADsecond_arg_plus1, ADfirst_arg, ADzero_fun, AD1_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun,"mult_add")
df1b2function1 ADf1b2_square(ADsquare_fun, ADtwo_id_fun, ADtwo_fun, ADzero_fun,"square")
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
double ADmult_add_fun(double x, double y)
Description not yet available.
double AD_df2_atan(double x)
Description not yet available.
double AD_id(double x)
Description not yet available.
Description not yet available.
double ADtwo_fun(double x)
Description not yet available.
double AD_df1_atan(double x)
Description not yet available.
d3_array cos(const d3_array &arr3)
Returns d3_array results with computed cos from elements in arr3.
double ADsix_fun(double x)
Description not yet available.
df1b2function2 ADf1b2_diff(ADdiff_fun, AD1_fun, ADm1_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun, ADzero_fun)
df1b2function1 ADf1b2_log(::log, AD_arg_inv, AD_minus_arg_inv2, AD_2arg_inv3)
Description not yet available.
double ADcube_fun(double x)
Description not yet available.
static unsigned int adpool_nvar_stack[]
double AD_arg_inv(double x)
Description not yet available.
double AD_div_11(double x, double y)
Description not yet available.
void save_end(void)
Description not yet available.
df1b2function1 ADf1b2_atan(::atan,::AD_df1_atan,::AD_df2_atan,::AD_df3_atan,"atan")
df1b2function1 ADf1b2_tan(::tan,::AD_df1_tan,::AD_df2_tan,::AD_df3_tan,"tan")
Description not yet available.
static initial_df1b2params ** varsptr_sav
dvector value(const df1_one_vector &v)
df1b2function1 ADf1b2_exp(::exp,::exp,::exp,::exp,"exp")
df1b2function1 ADf1b2_cos(::cos,::nsin,::ncos,::sin)
static adpool * adpool_stack[]
df1b2function1 ADf1b2_sin(::sin,::cos,::nsin,::ncos,"sin")
df1b2function2 ADf1b2_div(ADdiv_fun, AD_div_1, AD_div_2, AD_div_11, AD_div_12, AD_div_22, AD_div_111, AD_div_112, AD_div_122, AD_div_222)
static void restore_varsptr(void)
Description not yet available.
double AD_div_111(double x, double y)
Description not yet available.
double AD_df3_atan(double x)
Description not yet available.
double square(const double value)
Return square of value; constant object.
df1_one_variable inv(const df1_one_variable &x)
void restore_end(void)
Description not yet available.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void df1b2_gradcalc1(void)
Description not yet available.
static void restore_adpool_pointer(void)
Description not yet available.
void rewind(void)
Description not yet available.