From: Eddie R. <er...@bm...> - 2008-08-20 17:33:17
|
On Wed, 2008-08-20 at 12:16 -0400, John Cowan wrote: > Eddie Rucker scripsit: > > > Most of the time I'd agree, but I still think log 0 => -inf sucks big > > time. > > You have to remember what -inf and 0.0 actually mean: respectively > "a negative number too small to represent" and "a positive number too > close to zero to represent." And indeed, if you take the log of a number > too close to zero to represent, such as 1/(10^10^10) you will indeed > get a number too small to represent. You are right for 0.0. Yep, we have to use the |a-b| < epsilon definition for equality. However, for the integer 0 and the rational 0% 1, shouldn't log 0 be undefined? e.r. |