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: (< complex) and friends

2008-08-12 Thread Neil Jerram
2008/8/11 Bill Schottstaedt <[EMAIL PROTECTED]>: > guile> (< 1.0+1.0i) > #t > guile> (< 2.0 1.0+1.0i) > > Backtrace: > In standard input: > 2: 0* [< 2.0 {1.0+1.0i}] > > standard input:2:1: In procedure < in expression (< 2.0 1.0+1.0i): > standard input:2:1: Wrong type: 1.0+1.0i > ABORT: (wrong-ty

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 -- libr