padic_radix_write
Synopsis
#include <flint/padic_radix.h>int padic_radix_write(gr_stream_t out, const padic_radix_t x, gr_ctx_t ctx)sourceWrites x in the form (u) * p^v + O(p^N), omitting the power of p when v = 0 and the error term for exact elements, for example 188316833 + O(7^10). The unit is written by radix_get_str_sum, or as a decimal integer if the context has the flag PADIC_RADIX_DECIMAL. Strings of this form, including O(p^n), are accepted by gr_set_str.
Cite this page
The FLINT team, “padic_radix_write (padic_radix.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/padic_radix/padic_radix_write.html (generated 2026-10-20).
@misc{flint-doc-padic-radix-padic-radix-write,
author = {{The FLINT team}},
title = {{padic\_radix\_write (padic\_radix.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/padic_radix/padic_radix_write.html},
note = {Generated 2026-10-20}
}