return value of log()
Corinna Vinschen
cygwin@cygwin.com
Wed Mar 7 03:23:00 GMT 2001
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@sources.redhat.com
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list