fmpq_set_si, fmpq_set_ui, _fmpq_set_si, _fmpq_set_ui
Synopsis
#include <flint/fmpq.h>Set the result to the canonical form of p/q. Requires q \ne 0. In the underscore versions rnum and rden must not be aliased.
Guides#
- Canonical form and the fmpq interface
- Getting started with fmpq_poly (
fmpq_poly) - Representation and arithmetic of rational functions (
fmpz_poly_q) - Getting started with nf_elem (
nf_elem) - Precision in the padic module (
padic)
Cite this page
The FLINT team, “fmpq_set_si, fmpq_set_ui, _fmpq_set_si, _fmpq_set_ui (fmpq.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq/fmpq_set_si.html (generated 2026-10-20).
@misc{flint-doc-fmpq-fmpq-set-si,
author = {{The FLINT team}},
title = {{fmpq\_set\_si, fmpq\_set\_ui, \_fmpq\_set\_si, \_fmpq\_set\_ui (fmpq.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq/fmpq_set_si.html},
note = {Generated 2026-10-20}
}