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.
with⁡MTM:
M1≔Matrix⁡2,3,fill=12⁢x:
M2≔Matrix⁡2,3,fill=27⁢x⁢y:
lcm⁡M1,M2
108⁢x⁢y108⁢x⁢y108⁢x⁢y108⁢x⁢y108⁢x⁢y108⁢x⁢y
See Also
MTM[gcd]
Download Help Document