qadic_sqrt
Synopsis
#include <flint/qadic.h>int qadic_sqrt(qadic_t rop, const qadic_t op, const qadic_ctx_t ctx)sourceReturns whether op is a square in , and if so sets rop to a square root, reduced. If the valuation of the root is at least the precision of rop, rop is set to zero and squareness is decided from the residue of the unit (modulo , or modulo 8 for ); if op has no digits of precision left, 1 is returned.
For odd a square root in is found by an exponentiation or by Tonelli–Shanks and lifted by Newton iteration; for an Artin–Schreier equation over is solved by linear algebra over first (Square roots).
Cite this page
The FLINT team, “qadic_sqrt (qadic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/qadic/qadic_sqrt.html (generated 2026-11-02).
@misc{flint-doc-qadic-qadic-sqrt,
author = {{The FLINT team}},
title = {{qadic\_sqrt (qadic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/qadic/qadic_sqrt.html},
note = {Generated 2026-11-02}
}