From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: 2.0.11 on OS X 10.9 / Xcode 5.1 Date: Thu, 10 Apr 2014 21:08:58 -0400 Message-ID: <87zjjsfz9x.fsf@yeeloong.lan> References: <87vbuq435v.fsf@taylan.uni.cx> <87bnwak01s.fsf@taylan.uni.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1397178673 21340 80.91.229.3 (11 Apr 2014 01:11:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2014 01:11:13 +0000 (UTC) Cc: guile-devel@gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 11 03:11:05 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WYPzl-00071x-Q1 for guile-devel@m.gmane.org; Fri, 11 Apr 2014 03:11:05 +0200 Original-Received: from localhost ([::1]:54905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYPzl-0006iA-8l for guile-devel@m.gmane.org; Thu, 10 Apr 2014 21:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYPzP-0006Dz-R8 for guile-devel@gnu.org; Thu, 10 Apr 2014 21:10:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYPzI-0006is-9i for guile-devel@gnu.org; Thu, 10 Apr 2014 21:10:43 -0400 Original-Received: from world.peace.net ([96.39.62.75]:50721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYPzI-0006fk-6W for guile-devel@gnu.org; Thu, 10 Apr 2014 21:10:36 -0400 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WYPyw-0008CA-7W; Thu, 10 Apr 2014 21:10:14 -0400 In-Reply-To: <87bnwak01s.fsf@taylan.uni.cx> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Wed, 09 Apr 2014 17:14:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17050 Archived-At: taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/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) =3D> 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) =3D> 0.0 on your system, although IEEE 754 and C11 (F.10.1.6) specify that sin(-0.0) =3D> -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