www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/06/10/14:15:14

Date: Thu, 10 Jun 1999 13:12:40 -0500
From: Eric Rudd <rudd AT cyberoptics DOT com>
Subject: Re: libm sources from cyberoptics
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Message-id: <37600018.F31667EB@cyberoptics.com>
Organization: CyberOptics
MIME-version: 1.0
X-Mailer: Mozilla 4.05 [en] (Win95; U)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990609131510 DOT 19031C-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:

> On Wed, 9 Jun 1999, Martin Stromberg wrote:
>
> > _If_ lim(x^0) = 1,  then I would say 0^0 should be defined as 1,
> >      x->0-
>
> 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

-Eric Rudd

- Raw text -


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