fmpq_next_minimal, _fmpq_next_minimal
Synopsis
#include <flint/fmpq.h>Given a nonnegative canonical , set the result to the next element of the enumeration of the nonnegative rationals by increasing height : for the fractions and for coprime to , in increasing order of . Starting from zero, every nonnegative rational is generated exactly once:
Finding the next coprime to needs GCDs, so this enumeration is somewhat slower than fmpq_next_calkin_wilf.
Cite this page
The FLINT team, “fmpq_next_minimal, _fmpq_next_minimal (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq_next_minimal.html (generated 2026-11-02).
@misc{flint-doc-fmpq-fmpq-next-minimal,
author = {{The FLINT team}},
title = {{fmpq\_next\_minimal, \_fmpq\_next\_minimal (fmpq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq/fmpq_next_minimal.html},
note = {Generated 2026-11-02}
}