summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/detail/bessel_i1.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/detail/bessel_i1.hpp')
-rw-r--r--boost/math/special_functions/detail/bessel_i1.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/boost/math/special_functions/detail/bessel_i1.hpp b/boost/math/special_functions/detail/bessel_i1.hpp
index 47f1b79883..b85bc67546 100644
--- a/boost/math/special_functions/detail/bessel_i1.hpp
+++ b/boost/math/special_functions/detail/bessel_i1.hpp
@@ -103,6 +103,7 @@ T bessel_i1(T x)
BOOST_MATH_STD_USING
using namespace boost::math::tools;
+ BOOST_ASSERT(x >= 0); // negative x is handled before we get here
w = abs(x);
if (x == 0)
{
@@ -123,10 +124,6 @@ T bessel_i1(T x)
value = factor * r;
}
- if (x < 0)
- {
- value *= -value; // odd function
- }
return value;
}