[PATCH] Re: (gcd -2) - -2

2008-09-17 Thread Neil Jerram
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

Re: (gcd -2) - -2

2008-08-12 Thread Neil Jerram
2008/8/11 Bill Schottstaedt [EMAIL PROTECTED]: guile (gcd -2) -2 (or any negative single argument). Is that wrong? Neil

Re: (gcd -2) - -2

2008-08-12 Thread Bill Schottstaedt
gcd is supposed to ignore factors of -1. is restricted to reals -- a complex arg should be an error.

Re: (gcd -2) - -2

2008-08-12 Thread Neil Jerram
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?

Re: (gcd -2) - -2

2008-08-12 Thread Mikael Djurfeldt
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