guile-devel
[Top][All Lists]
Advanced

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

Re: 2.0.11 on OS X 10.9 / Xcode 5.1


From: Mark H Weaver
Subject: Re: 2.0.11 on OS X 10.9 / Xcode 5.1
Date: Thu, 10 Apr 2014 21:08:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

address@hidden (Taylan Ulrich "Bayırlı/Kammer") writes:

> By the way, after installing GCC 4.8 from MacPorts and setting the CC
> environment variable to use it (executable "gcc-mp-4.8"), the above
> issues are resolved, but I get the following test failure now:
>
> Running numbers.test
> ;;; ("address@hidden" 1.0 -0.0)
> FAIL: numbers.test: string->number: valid complex number strings
>
> The issue seems to be that (imag-part address@hidden) => 0.0 instead of -0.0

What does (sin -0.0) evaluate to?

My first guess is that at the C level, sin(-0.0) => 0.0 on your system,
although IEEE 754 and C11 (F.10.1.6) specify that sin(-0.0) => -0.0.

If my guess is incorrect, then please put a breakpoint in
'scm_c_make_polar' and see what's going wrong.  Both 'ang' and 's'
should be -0.0, and then it should pass -0.0 as the second argument to
'scm_c_make_rectangular'.

    Thanks,
      Mark



reply via email to

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