FLINT3.7.0-dev

fexpr_set_fmpq

Synopsis#include <flint/fexpr.h>
void fexpr_set_fmpq(fexpr_t res, const fmpq_t x)source

Sets res to the rational number x: an integer atom if the denominator is 1, and otherwise Div(p, q).

Guides#

Cite this page

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