Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the natural logarithm of one plus the specified value.
\[ \mbox{log1p}(x) = \log(1 + x) \]
This version is more stable for arguments near zero than the direct definition. If x == -1
, log1p(x)
is defined to be negative infinity.
[in] | x | Argument. |
std::domain_error | If argument is less than -1. |