square root of -1 mod n - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Numbers : Complex Numbers : numtheory/imagunit

numtheory[imagunit] - square root of -1 mod n

Calling Sequence

imagunit(n)

Parameters

n

-

integer

Description

• 

The function imagunit will find a square root of 1modn, if possible, otherwise it returns FAIL.

• 

The command with(numtheory,imagunit) allows the use of the abbreviated form of this command.

Examples

withnumtheory:

imagunit5

2

(1)

imagunit7

FAIL

(2)

See Also

msolve, numtheory[mroot], numtheory[msqrt]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam