acb_hypgeom_erf_1f1a, acb_hypgeom_erf_1f1b, acb_hypgeom_erf_asymp
Synopsis
#include <flint/acb_hypgeom.h>void acb_hypgeom_erf_asymp(acb_t res, const acb_t z, int complementary, slong prec, slong prec2)sourceSets res to \operatorname{erf}(z) computed respectively from
\operatorname{erf}(z) = \frac{2z}{\sqrt{\pi}}
{}_1F_1(\tfrac{1}{2}, \tfrac{3}{2}, -z^2), \qquad
\operatorname{erf}(z) = \frac{2z e^{-z^2}}{\sqrt{\pi}}
{}_1F_1(1, \tfrac{3}{2}, z^2),
\operatorname{erf}(z) = \frac{z}{\sqrt{z^2}}
\left(1 - \frac{e^{-z^2}}{\sqrt{\pi}} U(\tfrac{1}{2}, \tfrac{1}{2},
z^2)\right) = \frac{z}{\sqrt{z^2}} - \frac{e^{-z^2}}{z \sqrt{\pi}}
U^{*}(\tfrac{1}{2}, \tfrac{1}{2}, z^2).
The first series has terms of alternating sign when z is near the real axis, the second has positive terms there and is the one to use for real z; near the imaginary axis the roles are exchanged. The asymptotic version computes the U term at the second precision prec2, which can be much lower than prec when the term is small, and computes \operatorname{erfc}(z) instead if complementary is nonzero.
Cite this page
The FLINT team, “acb_hypgeom_erf_1f1a, acb_hypgeom_erf_1f1b, acb_hypgeom_erf_asymp (acb_hypgeom.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_hypgeom/acb_hypgeom_erf_1f1a.html (generated 2026-10-20).
@misc{flint-doc-acb-hypgeom-acb-hypgeom-erf-1f1a,
author = {{The FLINT team}},
title = {{acb\_hypgeom\_erf\_1f1a, acb\_hypgeom\_erf\_1f1b, acb\_hypgeom\_erf\_asymp (acb\_hypgeom.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acb_hypgeom/acb_hypgeom_erf_1f1a.html},
note = {Generated 2026-10-20}
}