powered by
Computes the least common multiple for a numeric vector x.
x
lcmval(x)lcm_vector(x)
lcm_vector(x)
The least common multiple.
integer: numbers to find the least common multiple
lcmval(c(144, 160)) # = 1440 lcmval(c(144, 160, 175)) # = 50.400
Run the code above in your browser using DataLab