FLINT3.7.0-dev

_qqbar_get_fmpq, qqbar_get_fmpq, qqbar_get_fmpz

Synopsis#include <flint/qqbar.h>
void _qqbar_get_fmpq(fmpz_t num, fmpz_t den, const qqbar_t x)source
void qqbar_get_fmpq(fmpq_t res, const qqbar_t x)source
void qqbar_get_fmpz(fmpz_t res, const qqbar_t x)source

Sets the output to the rational number x (as a numerator and denominator for the underscore version), or to the integer x. Throws an exception if x is not rational, respectively not an integer.

Cite this page

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