420a9ff5588852795bb3bbb99f878f0471e8fe58 Mon Sep 17 00:00:00 2001
From: Neil Jerram [EMAIL PROTECTED]
Date: Wed, 17 Sep 2008 21:46:40 +0100
Subject: [PATCH] Fix for incorrect (gcd -2) = -2; should give 2.
(reported by Bill Schottstaedt)
* libguile/numbers.c (scm_gcd): When only one arg given, use
2008/8/11 Bill Schottstaedt [EMAIL PROTECTED]:
guile (gcd -2)
-2
(or any negative single argument).
Is that wrong?
Neil
gcd is supposed to ignore factors of -1.
is restricted to reals -- a complex arg should be an error.
2008/8/12 Bill Schottstaedt [EMAIL PROTECTED]:
gcd is supposed to ignore factors of -1.
According to? (I'm not suggesting that you're wrong. I'd just like
you to be precise about your references.)
is restricted to reals -- a complex arg should be an error.
Again, is that specified?
2008/8/12 Neil Jerram [EMAIL PROTECTED]:
2008/8/12 Bill Schottstaedt [EMAIL PROTECTED]:
gcd is supposed to ignore factors of -1.
According to? (I'm not suggesting that you're wrong. I'd just like
you to be precise about your references.)
R5RS:
6.2.5 Numerical operations
-- library