Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ cosh() [7/9]

var stan::math::cosh ( const var a)
inline

Return the hyperbolic cosine of the specified variable (cmath).

The derivative is defined by

\(\frac{d}{dx} \cosh x = \sinh x\).

\[ \mbox{cosh}(x) = \begin{cases} \cosh(x) & \mbox{if } -\infty\leq x \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

\[ \frac{\partial\, \mbox{cosh}(x)}{\partial x} = \begin{cases} \sinh(x) & \mbox{if } -\infty\leq x\leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

Parameters
aVariable.
Returns
Hyperbolic cosine of variable.

Definition at line 44 of file cosh.hpp.