Your message dated Tue, 4 Apr 2000 09:36:29 -0400 (EDT)
with message-id <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> (Debian Smail3.2.0.102)
        for [EMAIL PROTECTED]; Tue, 19 Oct 1999 12:57:03 +0200 (CEST) 
Date: Tue, 19 Oct 1999 12:57:03 +0200
From: Bart Warmerdam <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Log doesn't honour NaN on log(-8)
Message-ID: <[EMAIL PROTECTED]>
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
[EMAIL PROTECTED], [EMAIL PROTECTED] (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 ([EMAIL PROTECTED])
  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 <[EMAIL PROTECTED]>; Tue, 04 Apr 2000 09:36:30 -0400
Date: Tue, 4 Apr 2000 09:36:29 -0400 (EDT)
From: "Christopher C. Chimelis" <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Log now works correctly...
Message-ID: <[EMAIL PROTECTED]>
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 via email to