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

Online Help

All Products    Maple    MapleSim


MTM

  

lcm

  

least common multiple

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

lcm(M1, M2)

Parameters

M1

-

array or expression

M2

-

array or expression

Description

• 

The lcm(M1,M2) function computes the element-wise least common multiple of M1 and M2.

• 

If M1 is a scalar, then gcd computes least common multiple of M1 and each element of M2.

• 

Arrays M1 and M2 must be the same size.

Examples

withMTM:

M1Matrix2,3,fill=12x:

M2Matrix2,3,fill=27xy:

lcmM1,M2

108xy108xy108xy108xy108xy108xy

(1)

See Also

lcm

MTM[gcd]