modular square root of -1
The ImaginaryUnit function returns a square root of −1 modulo n, if possible. If not possible, an error message is displayed.
If there is more than one imaginary unit, only one of them is returned.
There exists an imaginary unit modulo 5.
Since there does not exist an imaginary unit modulo 6, an error message is displayed.
Error, (in NumberTheory:-ImaginaryUnit) -1 does not have a square root modulo 6
The NumberTheory[ImaginaryUnit] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
Download Help Document
What kind of issue would you like to report? (Optional)