\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
valvector_unary_math¶
View page sourceThe valvector Unary Math Functions¶
Syntax¶
CppAD :: fun ( x )x¶
The argument x is a const valvector that is passed by reference.
y¶
The result y is a valvector with the same size as x .
fun¶
Standard Math Functions¶
The function name fun can be any of the following:
acos,
acosh,
asin,
asinh,
atan,
atanh,
cos,
cosh,
erf,
erfc,
exp,
expm1,
fabs,
log,
log1p,
log10,
sin,
sinh,
sqrt,
tan,
tanh
abs¶
The function name fun can be abs ,
which acts the same as the standard function fabs .
sign¶
The function name fun can be sign ,
which computes the sign (or signum) function.
Example¶
The file valvector_unary_math.cpp is an example and test of the valvector unary math functions.