2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-10 23:42:23 +00:00

1F1: large z case: can't have b-a as a negative integer.

This commit is contained in:
jzmaddock
2019-02-12 18:09:14 +00:00
parent 9eb6d5fc58
commit fa3e94ff79

View File

@@ -126,6 +126,8 @@
}
else if (fabs((1 - (b - a) + half_digits) * (a + half_digits) / (half_digits * z)) < 0.7)
{
if ((floor(b - a) == (b - a)) && (b - a < 0))
return false; // Can't have a negative integer b-a.
in_region = true;
//
// double check that we are not divergent at the start if a,b < 0: