bug#29387: Guile-2.2.2 complex numbers edge case

2017-11-23 Thread Daniel Llorens
On 22 Nov 2017, at 19:32, Jan Wedekind wrote: > Thanks Daniel, > I see. So I need to use "=" for numerical comparisons. "equal?" is only true > if the types are the same, too: > > (equal? 1.0 1) > ; #f > (= 1.0 1) > ; #t > > Sorry for filing a bug report. Feel free to close the bug. no probl

bug#29387: Guile-2.2.2 complex numbers edge case

2017-11-22 Thread Jan Wedekind
53:00 PM GMT, Daniel Llorens wrote: > >> From: Jan Wedekind >> Subject: bug#29387: Guile-2.2.2 complex numbers edge case >> Date: 21 Nov 2017 23:09:57 GMT+1 >> To: 29...@debbugs.gnu.org >> Reply-To: Jan Wedekind >> >> >> Hi, >> I t

bug#29387: Guile-2.2.2 complex numbers edge case

2017-11-22 Thread Daniel Llorens
> From: Jan Wedekind > Subject: bug#29387: Guile-2.2.2 complex numbers edge case > Date: 21 Nov 2017 23:09:57 GMT+1 > To: 29...@debbugs.gnu.org > Reply-To: Jan Wedekind > > > Hi, > I think I encountered a bug in the numerical stack. > i times i should equal -1:

bug#29387: Guile-2.2.2 complex numbers edge case

2017-11-21 Thread Jan Wedekind
Hi, I think I encountered a bug in the numerical stack. i times i should equal -1: (equal? -1 (* 0+i 0+i)) ; #f i times i plus one is zero (which is correct): (zero? (+ (* 0+i 0+i) 1)) ; #t Regards Jan