numtheory(deprecated)/imagunit - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/imagunit

numtheory(deprecated)

  

imagunit

  

square root of -1 mod n

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

imagunit(n)

Parameters

n

-

integer

Description

• 

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[ImaginaryUnit] instead.

• 

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

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[ImaginaryUnit] instead.

withnumtheory:

imagunit5

2

(1)

imagunit7

FAIL

(2)

See Also

msolve

NumberTheory[ImaginaryUnit]

numtheory(deprecated)[mroot]

numtheory(deprecated)[msqrt]