Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T > stan::math::lgamma_stirling | ( | const T | x | ) |
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.