gcd -- r7rs Definition procedure;
Procedure variants:
(((n integer)) -> ((n integer)))
((integer |2...|) -> (integer))
scheme:base -- (scheme base);scheme -- (scheme);(gcd n_1 ...) (lcm n_1 ...)These procedures return the greatest common divisor or least common multiple of their arguments. The result is always non-negative.
(gcd 32 -36) ===> 4 (gcd) ===> 0 (lcm 32 -36) ===> 288 (lcm 32.0 -36) ===> 288.0 ; inexact (lcm) ===> 1
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.