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
result = lcm(3)
result = 3
result = lcm(3,5,8,12)
result = 120