Navigation

Operators and Keywords

Function List:

C++ API

: lcm (x, y)
: lcm (x, y, …)

Compute the least common multiple of x and y, or of the list of all arguments.

All elements must be numeric and of the same size or scalar.

See also: factor, gcd, isprime.

Package: octave