Skip to content

Commit c0965c3

Browse files
fix a minor bug in hypgeom_m (nan result only setting real part to nan)
1 parent 01cf6c9 commit c0965c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

acb_hypgeom/m.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ acb_hypgeom_m_asymp(acb_t res, const acb_t a, const acb_t b, const acb_t z, int
5656
if (!regularized)
5757
{
5858
acb_gamma(v, b, prec);
59-
acb_mul(t, t, v, prec);
59+
60+
if (acb_is_finite(v))
61+
acb_mul(t, t, v, prec);
62+
else
63+
acb_indeterminate(t);
6064
}
6165

6266
if (acb_is_real(a) && acb_is_real(b) && acb_is_real(z))

0 commit comments

Comments
 (0)