padic_set_fmpq
Synopsis
#include <flint/padic.h>void padic_set_fmpq(padic_t rop, const fmpq_t op, const padic_ctx_t ctx)sourceSets 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).
@misc{flint-doc-padic-padic-set-fmpq,
author = {{The FLINT team}},
title = {{padic\_set\_fmpq (padic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/padic/padic_set_fmpq.html},
note = {Generated 2026-10-20}
}