FLINT3.7.0-dev

nfloat_pow

Synopsis#include <flint/nfloat.h>
int nfloat_pow(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)source

Sets res to x^y = \exp(y \log|x|), with the sign (-1)^y for x < 0 and integer y (NaN for x < 0 and noninteger y). Simple cases (y = \pm 1, 2, \pm 1/2, |x| = 1, integer powers of powers of two) are handled directly.

Guides#

Cite this page

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