FLINT3.7.0-dev

mag_pow_ui, mag_pow_fmpz

Synopsis#include <flint/mag.h>
void mag_pow_ui(mag_t res, const mag_t x, ulong e)source
void mag_pow_fmpz(mag_t res, const mag_t x, const fmpz_t e)source

Set res to an upper bound for x^e. A negative exponent in mag_pow_fmpz is handled as (1/x)^{-e}.

Cite this page

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