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

Bug#47784: marked as done (Log doesn't honour NaN on log(-8))



Your message dated Tue, 4 Apr 2000 09:36:29 -0400 (EDT)
with message-id <Pine.LNX.4.21.0004040935170.1392-100000@spawn.besmarter.com>
and subject line Log now works correctly...
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Oct 1999 10:57:33 +0000
Received: (qmail 17465 invoked from network); 19 Oct 1999 10:57:31 -0000
Received: from dc2-modem2150.dial.xs4all.nl (HELO emperor.linux.org) (194.109.136.102)
  by master.debian.org with SMTP; 19 Oct 1999 10:57:31 -0000
Received: by xs4all.nl
	via sendmail from stdin
	id <m11dWwx-000VqqC@emperor.linux.org> (Debian Smail3.2.0.102)
	for submit@bugs.debian.org; Tue, 19 Oct 1999 12:57:03 +0200 (CEST) 
Date: Tue, 19 Oct 1999 12:57:03 +0200
From: Bart Warmerdam <bartw@xs4all.nl>
To: submit@bugs.debian.org
Subject: Log doesn't honour NaN on log(-8)
Message-ID: <19991019125703.A18073@xs4all.nl>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="Qxx1br4bt0+wmkIi"
User-Agent: Mutt/1.0pre3i


--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii


Package: libc6.1
Version: 2.1.2-5

The log() function doesn't give the right answer on negative log values. E.g.
log(-8), as used in the testcase of mawk, returns 0.00000 while it should be
NaN.
Example attached.

Thanks,

B.
  

--
B. Warmerdam                                              GNU/Debian Linux
bartw@xs4all.nl, bartw@debian.org (Keyid: 10A0FDD1)       ----------------

--Qxx1br4bt0+wmkIi
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: attachment; filename="log.c"

#include <stdio.h>
#include <math.h>

int main()
{
	printf("%f\n", log(-8));
	exit(0);
}

--Qxx1br4bt0+wmkIi--
---------------------------------------
Received: (at 47784-done) by bugs.debian.org; 4 Apr 2000 13:36:32 +0000
Received: (qmail 13877 invoked from network); 4 Apr 2000 13:36:32 -0000
Received: from spawn.besmarter.com (mail@208.178.115.58)
  by master.debian.org with SMTP; 4 Apr 2000 13:36:32 -0000
Received: from localhost ([127.0.0.1] ident=chris)
	by spawn.besmarter.com with esmtp (Exim 3.12 #1 (Debian))
	id 12cTVO-0000VD-00
	for <47784-done@bugs.debian.org>; Tue, 04 Apr 2000 09:36:30 -0400
Date: Tue, 4 Apr 2000 09:36:29 -0400 (EDT)
From: "Christopher C. Chimelis" <chris@debian.org>
X-Sender: chris@spawn.besmarter.com
To: 47784-done@bugs.debian.org
Subject: Log now works correctly...
Message-ID: <Pine.LNX.4.21.0004040935170.1392-100000@spawn.besmarter.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I just tested 2.1.3-7 and the example programme that you sent with the bug
report now returns "nan" as it should.  I'll test 2.1.3-8 when it's done
compiling, but I expect the same results since no changes to the math libs
have been made that I can find.

C


Reply to: