CppAD: A C++ Algorithmic Differentiation Package  20171217
standard_math.hpp
Go to the documentation of this file.
1 // \$Id\$
4
5 /* --------------------------------------------------------------------------
7
9 the terms of the
10  Eclipse Public License Version 1.0.
11
12 A copy of this license is included in the COPYING file of this distribution.
14 -------------------------------------------------------------------------- */
15
16 /*
17 \$begin unary_standard_math\$\$
18 \$spell
19  const
21  fabs
22 \$\$
23
24 \$section The Unary Standard Math Functions\$\$
25
27 \$icode%y% = %fun%(%x%)%\$\$
28
30 Evaluates the standard math function \$icode fun\$\$.
31
33
35 If \$icode Base\$\$ satisfies the
36 \$cref/base type requirements/base_require/\$\$
37 and argument \$icode x\$\$ has prototype
38 \$codei%
39  const %Base%& %x%
40 %\$\$
41 then the result \$icode y\$\$ has prototype
42 \$codei%
43  %Base% %y%
44 %\$\$
45
47 If the argument \$icode x\$\$ has prototype
48 \$codei%
50 %\$\$
51 then the result \$icode y\$\$ has prototype
52 \$codei%
54 %\$\$
55
57 If the argument \$icode x\$\$ has prototype
58 \$codei%
60 %\$\$
61 then the result \$icode y\$\$ has prototype
62 \$codei%
64 %\$\$
65
75 %\$\$
76
78 The possible values for \$icode fun\$\$ are
79 \$table
80 \$icode fun\$\$ \$pre \$\$ \$cnext Description \$rnext
81 \$cref abs\$\$ \$cnext \$title abs\$\$ \$rnext
82 \$cref acos\$\$ \$cnext \$title acos\$\$ \$rnext
83 \$cref acosh\$\$ \$cnext \$title acosh\$\$ \$rnext
84 \$cref asin\$\$ \$cnext \$title asin\$\$ \$rnext
85 \$cref asinh\$\$ \$cnext \$title asinh\$\$ \$rnext
86 \$cref atan\$\$ \$cnext \$title atan\$\$ \$rnext
87 \$cref atanh\$\$ \$cnext \$title atanh\$\$ \$rnext
88 \$cref cos\$\$ \$cnext \$title cos\$\$ \$rnext
89 \$cref cosh\$\$ \$cnext \$title cosh\$\$ \$rnext
90 \$cref erf\$\$ \$cnext \$title erf\$\$ \$rnext
91 \$cref exp\$\$ \$cnext \$title exp\$\$ \$rnext
92 \$cref expm1\$\$ \$cnext \$title expm1\$\$ \$rnext
93 \$cref/fabs/abs/\$\$ \$cnext \$title abs\$\$ \$rnext
94 \$cref log10\$\$ \$cnext \$title log10\$\$ \$rnext
95 \$cref log1p\$\$ \$cnext \$title log1p\$\$ \$rnext
96 \$cref log\$\$ \$cnext \$title log\$\$ \$rnext
97 \$cref sign\$\$ \$cnext \$title sign\$\$ \$rnext
98 \$cref sin\$\$ \$cnext \$title sin\$\$ \$rnext
99 \$cref sinh\$\$ \$cnext \$title sinh\$\$ \$rnext
100 \$cref sqrt\$\$ \$cnext \$title sqrt\$\$ \$rnext
101 \$cref tan\$\$ \$cnext \$title tan\$\$ \$rnext
102 \$cref tanh\$\$ \$cnext \$title tanh\$\$
103 \$tend
104
105 \$end
106 */
116
117 /*
118 \$begin binary_math\$\$
119
120 \$section The Binary Math Functions\$\$
121