delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/06/13/04:12:59

Date: Sun, 13 Jun 1999 11:10:01 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Eric Rudd <rudd AT cyberoptics DOT com>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: libm sources from cyberoptics
In-Reply-To: <37600018.F31667EB@cyberoptics.com>
Message-ID: <Pine.SUN.3.91.990613110940.17906E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 10 Jun 1999, Eric Rudd wrote:

> > Perhaps it would be a good idea to see what other libraries do in that
> > case.
> 
> Borland C++ v3.1: pow(0,0) = 1, domain error
> Watcom C++ v10.0: pow(0,0) = 1, domain error, "argument too large" [?]
> Microsoft C++: pow(0,0) = 1, no error return
> Linux gcc: pow(0,0) = 1, no error return
> hp 15C calculator: Error 0
> Matlab: 0^0 = 1, no error return
> Formal mathematics: limit is undefined

Thanks.

Seems like your and Nate's testing indicates that returning 1 would be
a better choice.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019