numtheory(deprecated)
imagunit
square root of -1 mod n
Calling Sequence
Parameters
Description
Examples
imagunit(n)
n
-
integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[ImaginaryUnit] instead.
The function imagunit will find a square root of −1⁢mod⁢n, if possible, otherwise it returns FAIL.
The command with(numtheory,imagunit) allows the use of the abbreviated form of this command.
with⁡numtheory:
imagunit⁡5
2
imagunit⁡7
FAIL
See Also
msolve
NumberTheory[ImaginaryUnit]
numtheory(deprecated)[mroot]
numtheory(deprecated)[msqrt]
Download Help Document