Mod - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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]