lcm
Least common multiple.
Syntax
result=lcm(a1, [a2, a3, ...])
Inputs
- a#
- The factors of the resultant to be computed. These must all be integers.
Outputs
- result
- The smallest value that has all input values as factors.
Examples
Single input
value:
result = lcm(3)
result = 3
Multiple input
values:
result = lcm(3,5,8,12)
result = 120