valvector_unary_math

View page source

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.

Example

The file valvector_unary_math.cpp is an example and test of the valvector unary math functions.