CalcLcm
CalcLcm[ n1, n2, ... ]
CalcLcm[ n1, n2, ... ] returns the least common multiple of n1,n2, ...
| Example | in | out |
|---|---|---|
The least common multiple of 2 and 3. |
CalcLcm[ 2,3 ] |
6 |
The least common multiple of 2, 3 and 5. |
CalcLcm[ 2,3,5 ] |
30 |
The least common multiple of x and y, where x is defined as 5 and y is defined as 10 in the script. |
CalcLcm[x,y] |
10 |