FLINT3.7.0-dev

fmpq_inv

Synopsis#include <flint/fmpq.h>
void fmpq_inv(fmpq_t dest, const fmpq_t src)source

Sets dest to 1/\mathit{src} by swapping the components and fixing the sign. src must be nonzero; this is not checked, and zero gives the invalid value 1/0.

Cite this page

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