Hi,
I believe I found a bug in arb_div, causing it to return NaN when
dividing x/y where x = 0 +- something at high precision, for any y. (In
my case x was 0 on the nose.)
In src/arb/div.c, line 105, in arb_div_newton, the condition
arf_is_special(arb_midref(x)) will hold true when arb_midref(x) = 0,
triggering a NaN result. A probable fix would be to write
if (!arf_is_finite(arb_midref(x)) || arf_is_special(arb_midref(y)))
or possibly to edit the WANT_NEWTON macro.
Best,
Jean
--
Jean Kieffer
CNRS researcher at Loria (Nancy, France), CARAMBA team
https://members.loria.fr/JKieffer/