Use FOLD-LEFT instead of REDUCE to do n-ary versions of GCD and LCM --
authorChris Hanson <org/chris-hanson/cph>
Tue, 28 Dec 1993 18:20:48 +0000 (18:20 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 28 Dec 1993 18:20:48 +0000 (18:20 +0000)
commit1adbd8d2c0f67b8bd2fcc442af7acd34a8bbb40c
treee004485a18a0462b6468caa29c0b50b4a334cd77
parent55f017981b4a8769f3d338a901647e7a9d18ebc5
Use FOLD-LEFT instead of REDUCE to do n-ary versions of GCD and LCM --
REDUCE returns a negative number if there is a single negative
argument, which is incorrect.
v7/src/runtime/arith.scm