![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
|
inline |
Return the natural logarithm of the hyperbolic cosine of the argument, from expm1 for |x| < 1 and from exp(-|x|) above, so that neither branch subtracts two nearly equal numbers or overflows.
The derivative is tanh(x).
| T | arithmetic type |
| x | argument |
log(cosh(x)) Definition at line 26 of file log_cosh.hpp.