LCM | R Documentation |
A simple algorithm to compute the least common multiple of two numbers
LCM(x, y)
x |
an object of class numeric |
y |
an object of class numeric |
The least common multiple of x and y.
LCM(5,7)
LCM(5,8)
LCM(5,9)
LCM(5,10)
Reduce(LCM, 1:10) # -> 2520
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.