FLINT3.7.0-dev

fmpq_pow_si, _fmpq_pow_si

Synopsis#include <flint/fmpq.h>
void fmpq_pow_si(fmpq_t res, const fmpq_t op, slong e)source
void _fmpq_pow_si(fmpz_t rnum, fmpz_t rden, const fmpz_t opnum, const fmpz_t opden, slong e)source

Set the result to \mathit{op}^e, with 0^0 = 1. fmpq_pow_si throws if \mathit{op} = 0 and e < 0; the underscore version does not check.

Cite this page

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