numtheory(deprecated)/mroot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

numtheory(deprecated)

  

mroot

  

modular root

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

mroot(x, r, p)

Parameters

x, r, p

-

integers

Description

• 

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

• 

The function mroot computes the rth root of x modp. It finds an integer y such that yr=xmodp if possible. Otherwise, it returns FAIL.

• 

The order, r, of the root must be prime.

• 

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

Examples

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

withnumtheory:

mroot5,11,13

8

(1)

mroot2,3,6

2

(2)

See Also

msolve

NumberTheory[ModularRoot]

numtheory(deprecated)[msqrt]

numtheory(deprecated)[primroot]

numtheory(deprecated)[rootsunity]

Roots