fmpq
Synopsis
#include <flint/fmpq.h>fmpqA rational number: a struct with two fmpz fields num (numerator) and den (denominator). The type is defined in flint.h.
Guides#
- Ball semantics, nonfinite values and domains (
dfloat) - Canonical form and the fmpq interface
- Getting started with fmpq_poly (
fmpq_poly) - Representation and arithmetic of rational functions (
fmpz_poly_q) - Linear algebra over general and inexact rings (
gr_mat) - Getting started with nf_elem (
nf_elem) - Rounding in nfloat (
nfloat) - Precision in the padic module (
padic)
Cite this page
The FLINT team, “fmpq (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq.html (generated 2026-10-20).
@misc{flint-doc-fmpq-fmpq,
author = {{The FLINT team}},
title = {{fmpq (fmpq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq/fmpq.html},
note = {Generated 2026-10-20}
}