---------------------------------------------------------------- lines 687-757 of file: include/cppad/example/valvector/class.hpp ---------------------------------------------------------------- {xrst_begin valvector_unary_math} {xrst_spell acosh asinh erfc expm signum } The valvector Unary Math Functions ################################## Syntax ****** | *y* = ``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. {xrst_toc_hidden example/valvector/unary_math.cpp } Example ======= The file :ref:`valvector_unary_math.cpp-name` is an example and test of the valvector unary math functions. {xrst_end valvector_unary_math}