| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Wed, 7 Mar 2001 12:23:05 +0100 |
| From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
| To: | Cygwin ML <cygwin AT cygwin DOT com> |
| Subject: | Re: return value of log() |
| Message-ID: | <20010307122305.H21275@cygbert.vinschen.de> |
| Mail-Followup-To: | Cygwin ML <cygwin AT cygwin DOT com> |
| References: | <m37l21hosy DOT wl AT nifty DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
| In-Reply-To: | <m37l21hosy.wl@nifty.com>; from muraken2@nifty.com on Wed, Mar 07, 2001 at 07:10:53PM +0900 |
On Wed, Mar 07, 2001 at 07:10:53PM +0900, Kenta MURATA wrote:
> Hi there,
>
> I can't understand that log(x) returns -HUGE_VAL if x < 0.
> Becaus, IEEE definition returns NaN.
>
> Why adopt this implementation?
In the newlib sources I found:
/* Check for domain error here. */
if (x <= 0.0)
{
errno = ERANGE;
return (z_notanum.d);
}
and AFAICS z_notanum is different from -HUGE_VAL. I suggest asking
in the newlib mailing list mailto:newlib AT sources DOT redhat DOT com
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |