FLINT3.7.0-dev

arf_pow

Synopsis#include <flint/arf.h>
int arf_pow(arf_ptr res, arf_srcptr x, arf_srcptr y, slong prec, arf_rnd_t rnd)source

Sets res to xy=eylog⁡∣x∣x^y = e^{y \log |x|} with the sign of xx for an odd integer yy (a negative xx with a non-integer yy gives NaN). The conventions for the special values are those of C99 (pow): x0=1x^0 = 1 and 1y=11^y = 1 for any xx resp. yy, 0y=00^y = 0 or +∞+\infty, and so on. The result is exact, and reported so, whenever it is a dyadic number (powers of two, integer powers, roots of perfect powers, y=±1/2y = \pm 1/2); the inexact cases are decided by the retries. NaN when ∣ylog⁡∣x∣∣|y \log |x|| reaches the limit of exp.

Cite this page

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