FLINT3.7.0-dev

padic_set_fmpq

Synopsis#include <flint/padic.h>
void padic_set_fmpq(padic_t rop, const fmpq_t op, const padic_ctx_t ctx)source

Sets rop to the canonical rational number op. The power of p in the denominator becomes a negative valuation, and the rest of the denominator is inverted modulo p^{N - v}.

Guides#

Cite this page

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