2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 16:32:10 +00:00
This commit is contained in:
Matt Borland
2026-01-05 13:31:08 -05:00
parent 3363b21473
commit d8d0c0c5ca

View File

@@ -1798,7 +1798,7 @@ T lgamma_incomplete_imp(T a, T x, const Policy& pol)
// Can't do better than taking the log of Q, but...
//
// Figure out whether we need P or Q, since if we calculate Q and it's too close to unity
// we will loose precision in the result, selection logic here is extracted from gamma_incomplete_imp_final:
// we will lose precision in the result, selection logic here is extracted from gamma_incomplete_imp_final:
//
bool need_p = false;
if ((x < 0.5) && (T(-0.4) / log(x) < a))