FLINT3.7.0-dev

CA_FMPQ, CA_FMPQ_NUMREF, CA_FMPQ_DENREF

Synopsis#include <flint/ca.h>
CA_FMPQ(x)source
CA_FMPQ_NUMREF(x)source
CA_FMPQ_DENREF(x)source

Assuming that x is represented as an element of \mathbb{Q}, these macros give the data as an fmpq_t and its numerator and denominator as fmpz_t.

Cite this page

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