summaryrefslogtreecommitdiff
path: root/boost/math/distributions/non_central_beta.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/distributions/non_central_beta.hpp')
-rw-r--r--boost/math/distributions/non_central_beta.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/boost/math/distributions/non_central_beta.hpp b/boost/math/distributions/non_central_beta.hpp
index 6e699e509f..aa66ecec0d 100644
--- a/boost/math/distributions/non_central_beta.hpp
+++ b/boost/math/distributions/non_central_beta.hpp
@@ -515,7 +515,11 @@ namespace boost
T non_central_beta_pdf(T a, T b, T lam, T x, T y, const Policy& pol)
{
BOOST_MATH_STD_USING
- using namespace boost::math;
+ //
+ // Special cases:
+ //
+ if((x == 0) || (y == 0))
+ return 0;
//
// Variables come first:
//