diff --git a/src/flint/types/arb.pyx b/src/flint/types/arb.pyx index 2c585b27..22d0cc7b 100644 --- a/src/flint/types/arb.pyx +++ b/src/flint/types/arb.pyx @@ -1856,6 +1856,30 @@ cdef class arb(flint_scalar): arb_hypgeom_erfc((u).val, (s).val, getprec()) return u + def erfinv(s): + r""" + Inverse error function `\operatorname{erfinv}(s)`. + + >>> from flint import showgood + >>> showgood(lambda: arb(.25).erfinv(), dps=25) + 0.2253120550121781047250140 + """ + u = arb.__new__(arb) + arb_hypgeom_erfinv((u).val, (s).val, getprec()) + return u + + def erfcinv(s): + r""" + Inverse complementary error function `\operatorname{erfcinv}(s)`. + + >>> from flint import showgood + >>> showgood(lambda: arb(.25).erfcinv(), dps=25) + 0.8134198475976185416902894 + """ + u = arb.__new__(arb) + arb_hypgeom_erfcinv((u).val, (s).val, getprec()) + return u + def erfi(s): r""" Imaginary error function `\operatorname{erfi}(s)`.