lcmval {exams.forge}R Documentation

Least Common Multiple

Description

Computes the least common multiple for a numeric vector x.

Usage

lcmval(x)

lcm_vector(x)

Arguments

x

integer: numbers to find the least common multiple

Value

The least common multiple.

Examples

lcmval(c(144, 160))      # = 1440
lcmval(c(144, 160, 175)) # = 50.400

[Package exams.forge version 1.0.10 Index]