MTM - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : MTM Package : MTM/Mod

MTM

  

Mod

  

computation over the integers modulo m

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Mod(M1, M2)

Parameters

M1

-

array

M2

-

array

Description

• 

The Mod(M1,M2) function computes the element-wise M1 modulo M2.

• 

If M1 is a scalar, then M1 is added to each element of M2.

• 

Arrays M1 and M2 must be the same size.

Examples

withMTM:

M1Matrix2,3,'fill'=103x:

M2Matrix2,3,'fill'=27:

ModM1,M2

22x22x22x22x22x22x

(1)

Mod7,3,4|5,6

1231

(2)

Mod3,4|5,6,2

1100

(3)

See Also

mod

MTM[quorem]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam