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

◆ log1m_inv_logit() [4/7]

double stan::math::log1m_inv_logit ( double  u)
inline

Returns the natural logarithm of 1 minus the inverse logit of the specified argument.

\[ \mbox{log1m\_inv\_logit}(x) = \begin{cases} -\ln(\exp(x)+1) & \mbox{if } -\infty\leq x \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

\[ \frac{\partial\, \mbox{log1m\_inv\_logit}(x)}{\partial x} = \begin{cases} -\frac{\exp(x)}{\exp(x)+1} & \mbox{if } -\infty\leq x\leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

Parameters
uargument
Returns
log of one minus the inverse logit of the argument

Definition at line 36 of file log1m_inv_logit.hpp.