Prev Next std_math_unary

Float and Double Standard Math Unary Functions

Syntax
# include <cppad/std_math_unary.hpp> y = fun(x)

Purpose
Places a copy of the standard math unary functions in the CppAD namespace. This is included with <cppad/cppad.hpp> and can be included separately.

Type
The Type is determined by the argument x and is either float or double.

x
The argument x has the following prototype
     const 
Type  &x

y
The result y has prototype
     
Type y

fun
A definition of fun is included for each of the following functions: abs, acos, asin, atan, cos, cosh exp, log, log10, sin, sinh, sqrt, tan, tanh,
Input File: cppad/std_math_unary.hpp