NumberTheory
ModularSquareRoot
modular square root
Calling Sequence
Parameters
Description
Examples
Compatibility
ModularSquareRoot(x, n)
x
-
integer
n
positive integer
The ModularSquareRoot function computes a non-negative integer such that if possible. If not possible, an error message is displayed.
When x has more than one square root, any one of them may be returned.
The follow numbers have square roots modulo .
has a square root modulo .
does not have a square root modulo and so an error message is displayed.
Error, (in NumberTheory:-ModularSquareRoot) 24 is a quadratic non-residue modulo 37
The NumberTheory[ModularSquareRoot] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
NumberTheory[ImaginaryUnit]
NumberTheory[ModularRoot]
NumberTheory[PrimitiveRoot]
NumberTheory[RootsOfUnity]
Download Help Document