FLINT3.7.0-dev

arf_exp, arf_expm1, arf_exp2, arf_exp10

Synopsis#include <flint/arf.h>
int arf_exp(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_expm1(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_exp2(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_exp10(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source

Sets res to exe^x, ex−1e^x - 1, 2x2^x resp. 10x10^x. The results are exact at x=0x = 0, and 2x2^x resp. 10x10^x for an integer xx are exact (and rounded once). Arguments beyond 2max⁡(128,2 prec)2^{\max(128, 2 \, \mathit{prec})} in absolute value (where arb_exp gives up as well) give NaN; within that range the exponent of the result may be a bignum.

Cite this page

The FLINT team, “arf_exp, arf_expm1, arf_exp2, arf_exp10 (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_exp.html (generated 2026-11-17).