std-lcm


Synopsis

(std-lcm <intlst>)

Description

Returns the least common multiple of all given integer numbers.

(lcm 2 3) = (/ (* 2 3) (gcd 2 3))

Examples

(std-lcm '(2 3 4))	=> 6 (* 2 3)
(std-lcm '(2 6 4))	=> 12 (* 2 3)

Arguments

intlst: A list of integer numbers.

Return Value

A integer number or a real, if the resulting exceeds the supported range.

Side Effects

None.

Module

(std-require 'STDMATH)

Defined in STDMATH