diff options
Diffstat (limited to 'boost/math/distributions/exponential.hpp')
-rw-r--r-- | boost/math/distributions/exponential.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/math/distributions/exponential.hpp b/boost/math/distributions/exponential.hpp index bfe7e6b4ac..05c49374ed 100644 --- a/boost/math/distributions/exponential.hpp +++ b/boost/math/distributions/exponential.hpp @@ -117,7 +117,7 @@ inline RealType pdf(const exponential_distribution<RealType, Policy>& dist, cons return result; // Workaround for VC11/12 bug: if ((boost::math::isinf)(x)) - return 0; + return 0; result = lambda * exp(-lambda * x); return result; } // pdf @@ -178,7 +178,7 @@ inline RealType cdf(const complemented2_type<exponential_distribution<RealType, return result; // Workaround for VC11/12 bug: if (c.param >= tools::max_value<RealType>()) - return 0; + return 0; result = exp(-c.param * lambda); return result; |