X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=boost%2Fmath%2Fspecial_functions%2Fdetail%2Fbessel_jy_series.hpp;h=d50bef84e8139642bc2ea2c87b082df309a45e60;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=b926366eb0b3020a8c37ccabe196f1946df26061;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/boost/math/special_functions/detail/bessel_jy_series.hpp b/boost/math/special_functions/detail/bessel_jy_series.hpp index b926366..d50bef8 100644 --- a/boost/math/special_functions/detail/bessel_jy_series.hpp +++ b/boost/math/special_functions/detail/bessel_jy_series.hpp @@ -194,9 +194,9 @@ inline T bessel_y_small_z_series(T v, T x, T* pscale, const Policy& pol) } else { - int s; - prefix = boost::math::lgamma(-v, &s, pol) + p; - prefix = exp(prefix) * s / constants::pi(); + int sgn; + prefix = boost::math::lgamma(-v, &sgn, pol) + p; + prefix = exp(prefix) * sgn / constants::pi(); } bessel_y_small_z_series_term_b s2(v, x); max_iter = policies::get_max_series_iterations(); @@ -235,7 +235,7 @@ T bessel_yn_small_z(int n, T z, T* scale, const Policy& pol) { return (z * z) / (4 * constants::pi()) * log(z / 2) - (4 / (constants::pi() * z * z)) - - ((z * z) / (8 * constants::pi())) * (3/2 - 2 * constants::euler()); + - ((z * z) / (8 * constants::pi())) * (T(3)/2 - 2 * constants::euler()); } else {