fmpq_farey_neighbors
Synopsis
#include <flint/fmpq.h>Writing , the neighbours are the fractions with and [HarWri2008, Chapter III]. The function computes from and the rest from these identities.
References#
- [HarWri2008] G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, sixth edition, revised by D. R. Heath-Brown and J. H. Silverman, Oxford University Press, 2008.
Cite this page
The FLINT team, “fmpq_farey_neighbors (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq_farey_neighbors.html (generated 2026-11-02).
@misc{flint-doc-fmpq-fmpq-farey-neighbors,
author = {{The FLINT team}},
title = {{fmpq\_farey\_neighbors (fmpq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq/fmpq_farey_neighbors.html},
note = {Generated 2026-11-02}
}