taylanbayi...@gmail.com (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
> ;;; ("#i1@-0" 1.0 -0.0)
> FAIL: numbers.test: string->number: valid complex number strings
>
> The issue seems to be that (imag-part #i1@-0) => 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