FLINT3.7.0-dev

fmpz_pow_fmpz

Synopsis#include <flint/fmpz.h>
int fmpz_pow_fmpz(fmpz_t a, const fmpz_t b, const fmpz_t e)source

Sets a to b^e with 0^0 = 1 and returns 1. For |b| \ge 2 and an exponent e that does not fit in an slong (the result would not fit in memory), returns 0 and leaves a unchanged. Throws an exception if e < 0.

Cite this page

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