FLINT3.7.0-dev

_decfloat_pow_int_exact, _decfloat_pow_ziv, _decball_pow_fmpz_binexp

Synopsis#include <flint/decimal.h>
int _decfloat_pow_int_exact(decfloat_t res, const decfloat_t x, const fmpz_t n, slong prec, int rnd, gr_ctx_t ctx)source
int _decfloat_pow_ziv(decfloat_t res, const decfloat_t x, const decfloat_t y, gr_ctx_t ctx)source
int _decball_pow_fmpz_binexp(decball_t res, const decball_t x, const fmpz_t y, gr_ctx_t ctx)source

x^n for an integer n, exactly and then rounded when feasible (returning 1 if handled); x^y = \exp(y \log x) for finite x > 0 and finite y by Ziv's strategy; and a ball power by binary powering, which does not use the method table of the context and so can be called with a complex context.

Cite this page

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