--- Begin Message ---
Subject: |
Guile-2.2.2 complex numbers edge case |
Date: |
Tue, 21 Nov 2017 22:09:57 +0000 (GMT) |
User-agent: |
Alpine 2.20 (DEB 67 2015-01-07) |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#29387: Guile-2.2.2 complex numbers edge case |
Date: |
Thu, 23 Nov 2017 15:48:46 +0100 |
On 22 Nov 2017, at 19:32, Jan Wedekind <address@hidden> 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 problem! closing the bug (right this time)
--- End Message ---