bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Possible error in bc


From: Harald Anlauf
Subject: Re: Possible error in bc
Date: 12 Feb 2002 12:06:55 +0100

address@hidden (Dean Allen Provins) writes:

> Recently, when calculating some larger numbers, I had occasion (in my
> formulae) to compute 0^0 (i.e. zero tothe zero power).  This produced
> the value 1 (one).

This is in accordance with the bc documentation:

  "It should be noted that expr^0 will always return the value of 1."

> It was my understanding (and I checked my CRC math tables book, and
> also tried gcc in a simple test) that 0^0 should be 0 (zero).

I don't know how you fouled gcc into this, but this is clearly wrong.

-- 
Ciao,
-ha



reply via email to

[Prev in Thread] Current Thread [Next in Thread]