![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return the Stirling approximation to the lgamma function.
\[ \mbox{lgamma_stirling}(x) = \frac{1}{2} \log(2\pi) + (x-\frac{1}{2})*\log(x) - x \]
| T | type of value |
| x | value |
Definition at line 26 of file lgamma_stirling.hpp.