LCM: Compute the least common multiple of two numbers.

Description Usage Arguments Value Examples

View source: R/LCM.R

Description

A simple algorithm to compute the least common multiple of two numbers

Usage

1
LCM(x, y)

Arguments

x

an object of class numeric

y

an object of class numeric

Value

The least common multiple of x and y.

Examples

1
2
3
4
5
LCM(5,7)
LCM(5,8)
LCM(5,9)
LCM(5,10)
Reduce(LCM, 1:10) # -> 2520

mpoly documentation built on March 26, 2020, 7:33 p.m.

Related to LCM in mpoly...