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 xy=exp⁡(ylog⁡∣x∣)x^y = \exp(y \log|x|), with the sign (−1)y(-1)^y for x<0x < 0 and integer yy (NaN for x<0x < 0 and noninteger yy). Simple cases (y=±1,2,±1/2y = \pm 1, 2, \pm 1/2, ∣x∣=1|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-11-02).