FLINT3.7.0-dev

fmpz_poly_q_inv

Synopsis#include <flint/fmpz_poly_q.h>
void fmpz_poly_q_inv(fmpz_poly_q_t rop, const fmpz_poly_q_t op)source

Sets rop to 1/\mathit{op}, by exchanging numerator and denominator and fixing the sign. Raises an exception (FLINT_ERROR) if op is zero.

Cite this page

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