We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5df6fc5 + dc88b4c commit a6932f2Copy full SHA for a6932f2
1 file changed
stan/math/prim/fun/log1m_exp.hpp
@@ -49,7 +49,7 @@ inline double log1m_exp(double a) {
49
using std::log;
50
if (a > 0) {
51
return NOT_A_NUMBER;
52
- } else if (a > -0.693147) {
+ } else if (a > LOG_HALF) {
53
return log(-expm1(a)); // 0.693147 ~= log(2)
54
} else {
55
return log1m(exp(a));
0 commit comments