emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#29387: closed (Guile-2.2.2 complex numbers edge ca


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29387: closed (Guile-2.2.2 complex numbers edge case)
Date: Thu, 23 Nov 2017 14:49:02 +0000

Your message dated Thu, 23 Nov 2017 15:48:46 +0100
with message-id <address@hidden>
and subject line Re: bug#29387: Guile-2.2.2 complex numbers edge case
has caused the debbugs.gnu.org bug report #29387,
regarding Guile-2.2.2 complex numbers edge case
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
29387: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29387
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]