_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)sourceint _decfloat_pow_ziv(decfloat_t res, const decfloat_t x, const decfloat_t y, gr_ctx_t ctx)sourcex^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).
@misc{flint-doc-decimal-decfloat-pow-int-exact,
author = {{The FLINT team}},
title = {{\_decfloat\_pow\_int\_exact, \_decfloat\_pow\_ziv, \_decball\_pow\_fmpz\_binexp (decimal.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/decimal/_decfloat_pow_int_exact.html},
note = {Generated 2026-10-20}
}