n_sqrtmod
Synopsis
#include <flint/ulong_extras.h>If p is not prime, the result is either 0 or a genuine square root of a modulo p. This is a wrapper of nmod_sqrt, which should be called directly when an nmod_t for p is available.
Cite this page
The FLINT team, “n_sqrtmod (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_sqrtmod.html (generated 2026-10-20).
@misc{flint-doc-ulong-extras-n-sqrtmod,
author = {{The FLINT team}},
title = {{n\_sqrtmod (ulong\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ulong_extras/n_sqrtmod.html},
note = {Generated 2026-10-20}
}