FLINT3.7.0-dev

gr_erf, gr_erfc, gr_erfcx, gr_erfi

Synopsis#include <flint/gr_special.h>
int gr_erf(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_erfc(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_erfcx(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_erfi(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source

Set res to the error function \operatorname{erf}(x), the complementary error function \operatorname{erfc}(x) = 1 - \operatorname{erf}(x), the scaled complementary error function \operatorname{erfcx}(x) = e^{x^2} \operatorname{erfc}(x), or the imaginary error function \operatorname{erfi}(x) = -i \operatorname{erf}(ix).

Cite this page

The FLINT team, “gr_erf, gr_erfc, gr_erfcx, gr_erfi (gr_special.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_special/gr_erf.html (generated 2026-10-20).