27 if (v1.
v->
x <= -708.3964)
41 #if !defined(__SUNPRO_CC) && !(defined(_MSC_VER) && (_MSC_VER <= 1700))
55 &(RETURN_PTR->
v->
x), &(v1.
v->
x),tmp);
71 &(v1.
v->
x),1./(1.+v1.
v->
x * v1.
v->
x) );
86 &(RETURN_PTR->
v->
x), &(v1.
v->
x),
pow(2.0,exponent));
100 cerr <<
"Attempting to take the derivative of sqrt(prevariable x)"
107 RETURN_PTR->
v->
x=tmp;
109 &(RETURN_PTR->
v->
x), &(v1.
v->
x),1./(2.*tmp));
151 &(RETURN_PTR->
v->
x), &(v1.
v->
x), 1+t*t);
167 &(RETURN_PTR->
v->
x), &(v1.
v->
x), 1.0-t*t);
182 &(v1.
v->
x),-1./::
sqrt(1.- v1.
v->
x * v1.
v->
x));
217 &(v1.
v->
x), v2.
v->
x * x ,&(v2.
v->
x),
235 &(RETURN_PTR->
v->
x), &(v1.
v->
x), y * ::
log(u));
250 &(RETURN_PTR->
v->
x), &(v1.
v->
x),::
cosh(v1.
v->
x));
265 &(RETURN_PTR->
v->
x), &(v1.
v->
x),::
sinh(v1.
v->
x));
278 cerr <<
"Error: The ADMB function \"atan2(y, x)\" is undefined "
279 "for y and x equal zero.\n";
287 return atan(x) * 2.0;
296 if (
value(v1) == 0 && v2 == 0)
298 cerr <<
"Error: The ADMB function \"atan2(y, x)\" is undefined "
299 "for y and x equal zero.\n";
302 if (
value(v1) == 0 && v2 > 0)
307 return atan(x) * 2.0;
316 if (v1 == 0 &&
value(v2) == 0)
318 cerr <<
"Error: The ADMB function \"atan2(y, x)\" is undefined "
319 "for y and x equal zero.\n";
322 if (v1 == 0 &&
value(v2) > 0)
327 return atan(x) * 2.0;
Base class for dvariable.
d3_array tan(const d3_array &arr3)
Returns d3_array results with computed tan from elements in arr3.
d3_array sqr(const d3_array &arr3)
Returns d3_array with square values from arr3.
dvector atan2(const dvector &t1, const dvector &t2)
dvector tanh(const dvector &vec)
Returns dvector with hyperbolic tangent for each value of vec.
df1_one_variable atan(const df1_one_variable &x)
dvector cosh(const dvector &vec)
Returns dvector with hyperbolic cosine for each value of vec.
bool isfinite(const ad< T, V > &x)
void set_gradient_stack(void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0)
Description not yet available.
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
static dvariable * next_RETURN_PTR()
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 default_evaluation(void)
Description not yet available.
double_and_int * v
pointer to the data
dvector sinh(const dvector &vec)
Returns dvector with hyperbolic sine for each value of vec.
dvector value(const df1_one_vector &v)
static _THREAD grad_stack * GRAD_STACK1
prevariable & ldexp(const prevariable &v1, const int &exponent)
Description not yet available.
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.
double x
< value of the variable
dvector acos(const dvector &vec)
Returns dvector with principal value of the arc cosine of vec, expressed in radians.
d3_array pow(const d3_array &m, int e)
Description not yet available.
dvector asin(const dvector &vec)
Returns dvector with principal value of the arc sine of vec, expressed in radians.