NetBSD-Bugs archive

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

Re: lib/45372: A bug in pow(3)



The following reply was made to PR lib/45372; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/45372: A bug in pow(3)
Date: Sat, 17 Sep 2011 11:25:12 +0200

 On Sat, Sep 17, 2011 at 06:55:00AM +0000, Jukka Ruohonen wrote:
 > For pow(x, y), if x = -1 and y = +- Inf, 1.0 should be returned. But NetBSD
 > returns incorrectly NaN.
 
 So you're saying that -1^(+infinity) is 1?
 Which standard defines that?
 
 e_pow.c explicitly mentions the case:
  *      9.  +-1         ** +-INF is NAN
 and I tend to agree.
  Thomas
 


Home | Main Index | Thread Index | Old Index