Close
Close window
numtheory(deprecated)/msqrt - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : numtheory(deprecated)/msqrt
[フレーム] [フレーム]

numtheory(deprecated)

msqrt

modular square root

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 xmodn. 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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /