Close
Close window
numtheory(deprecated)/imagunit - 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)/imagunit
[フレーム] [フレーム]

numtheory(deprecated)

imagunit

square root of -1 mod n

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)


Download Help Document

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