FLINT3.7.0-dev

acf_pow

Synopsis#include <flint/acf.h>
int acf_pow(acf_t res, const acf_t x, const acf_t y, slong prec, arf_rnd_t rnd)source

Sets res to xy=exp⁡(ylog⁡x)x^y = \exp(y \log x) with the principal logarithm. x0=1x^0 = 1 (including 000^0); 0y=00^y = 0 for Re⁡(y)>0\operatorname{Re}(y) > 0 and nan otherwise. Real powers of positive reals are computed by arf_pow; the powers of real and purely imaginary numbers with real exponents (or with ∣x∣=1|x| = 1) from ∣x∣Re⁡y|x|^{\operatorname{Re} y} and the sine and cosine of πkRe⁡(y)/2\pi k \operatorname{Re}(y) / 2, so that their exact values (such as (−2)3(-2)^3 and i1000i^{1000}) are recognised; see Rounding in acf for the other exact cases.

Cite this page

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