Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / math / bindings / e_float.hpp
index d7f9a73..4068e35 100644 (file)
@@ -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;