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 aa to beb^e and returns 1, or returns 0 (leaving aa unchanged) if ee does not fit in a slong and b∉{0,1,−1}b \notin \{0, 1, -1\}, in which case the result could not be stored. Throws if b=0b = 0 and e<0e < 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-11-02).