MTM
lcm
least common multiple
Calling Sequence
Parameters
Description
Examples
lcm(M1, M2)
M1
-
array or expression
M2
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.
withMTM:
M1≔Matrix2,3,fill=12x:
M2≔Matrix2,3,fill=27xy:
lcmM1,M2
108xy108xy108xy108xy108xy108xy
See Also
MTM[gcd]
Download Help Document