summaryrefslogtreecommitdiff
path: root/boost/math/bindings/e_float.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/bindings/e_float.hpp')
-rw-r--r--boost/math/bindings/e_float.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/boost/math/bindings/e_float.hpp b/boost/math/bindings/e_float.hpp
index d7f9a73508..4068e35922 100644
--- a/boost/math/bindings/e_float.hpp
+++ b/boost/math/bindings/e_float.hpp
@@ -25,6 +25,7 @@
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/math/bindings/detail/big_digamma.hpp>
#include <boost/math/bindings/detail/big_lanczos.hpp>
+#include <boost/lexical_cast.hpp>
namespace boost{ namespace math{ namespace ef{
@@ -714,7 +715,7 @@ boost::math::ef::e_float bessel_i0(boost::math::ef::e_float x)
}
else // x in (15, \infty)
{
- boost::math::ef::e_float y = 1 / x - 1 / 15;
+ boost::math::ef::e_float y = 1 / x - boost::math::ef::e_float(1) / 15;
r = evaluate_polynomial(P2, y) / evaluate_polynomial(Q2, y);
factor = exp(x) / sqrt(x);
value = factor * r;