next up previous contents index
Next: length Up: IntegerType Previous: factorial   Contents   Index


gcd,lcm


Usage

gcd(a, b)
lcm(a, b)


Signature

gcd,lcm: (%,%) $\to$ %


Parameter Type Description
a,b % integers


Returns

gcd(a, b) and lcm(a, b) return respectively a greatest common divisor and a least common multiple of a and b.



Manuel Bronstein 2004-06-28