Skip to content

Commit

Permalink
Correct compilation in bessel boost version
Browse files Browse the repository at this point in the history
  • Loading branch information
ocommowi committed Jul 13, 2018
1 parent 0a7e99c commit 2482cff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Anima/math-tools/special_functions/animaBesselFunctions.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ double scaled_bessel_i(unsigned int N, double x)
#else

boost::multiprecision::cpp_dec_float_100 y = x;
return std::exp(-y) * boost::math::cyl_bessel_i<boost::multiprecision::cpp_dec_float_100>(N, y);
boost::multiprecision::cpp_dec_float_100 expX = std::exp(-x);

boost::multiprecision::cpp_dec_float_100 resVal = expX * boost::math::cyl_bessel_i<boost::multiprecision::cpp_dec_float_100>(N, y);
return resVal.convert_to<double>();

#endif
}
Expand Down

0 comments on commit 2482cff

Please sign in to comment.