numtheory(deprecated)/msqrt - Maple Help

Online Help

All Products    Maple    MapleSim


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

numtheory(deprecated)

  

msqrt

  

modular square root

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

msqrt(x, n)

Parameters

x, n

-

integers

Description

• 

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

• 

The function msqrt will compute the square root of x modn. It finds an integer y such that y2=xmodn if possible, otherwise it returns FAIL.

• 

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

Examples

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

withnumtheory:

msqrt3,11

5

(1)

msqrt3,7

FAIL

(2)

See Also

msolve

NumberTheory[ModularSquareRoot]

numtheory(deprecated)[mroot]

Roots