FLINT3.7.0-dev

_padic_sqrt

Synopsis#include <flint/padic.h>
int _padic_sqrt(fmpz_t rop, const fmpz_t op, const fmpz_t p, slong N)source

Returns whether the pp-adic unit op is a square in Zp\mathbf{Z}_p and if so sets rop to a square root modulo pNp^N, for N≥1N \ge 1. For odd pp this is decided modulo pp, for p=2p = 2 modulo 8. Allows aliasing.

Cite this page

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