Skip to content

Commit

Permalink
Merge pull request #1043 from boostorg/log1p_mp_fix
Browse files Browse the repository at this point in the history
Qualify log1p calls.
  • Loading branch information
jzmaddock authored Nov 2, 2023
2 parents 7bc2da4 + ae6571a commit 36a3dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/math/special_functions/beta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ T ibeta_power_terms(T a,
else if (b > a)
{
T p = boost::math::expm1((b / a) * boost::math::log1p((y * a - x * b) / b));
power1 = exp(a * log1p((x * b - y * a) / a + p * (x * c / a)));
power1 = exp(a * boost::math::log1p((x * b - y * a) / a + p * (x * c / a)));
power2 = 1;
}
else
{
T p = boost::math::expm1((a / b) * boost::math::log1p((x * b - y * a) / a));
power1 = exp(b * log1p((y * a - x * b) / b + p * (y * c / b)));
power1 = exp(b * boost::math::log1p((y * a - x * b) / b + p * (y * c / b)));
power2 = 1;
}
}
Expand Down

0 comments on commit 36a3dbd

Please sign in to comment.