FLINT3.7.0-dev

fmpq_pow_fmpz

Synopsis#include <flint/fmpq.h>
int fmpq_pow_fmpz(fmpq_t a, const fmpq_t b, const fmpz_t e)source

Sets a to b^e and returns 1, or returns 0 (leaving a unchanged) if e does not fit in a slong and b \notin \{0, 1, -1\}, in which case the result could not be stored. Throws if b = 0 and e < 0.

Cite this page

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