2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Check update of xterm for denom of 0

This commit is contained in:
Matt Borland
2023-11-16 09:38:11 +01:00
parent de64f02ad3
commit d18964d5aa

View File

@@ -212,7 +212,10 @@ namespace boost
}
pois *= i / l2;
beta -= xterm;
xterm *= (a + i - 1) / (x * (a + b + i - 2));
if (a + b + i - 2 != 0)
{
xterm *= (a + i - 1) / (x * (a + b + i - 2));
}
}
return sum;
}