Re: [pure-lang-users] Yet another quirk with MinGW
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-20 17:46:40
|
On Wed, 2008-08-20 at 13:38 -0400, John Cowan wrote: > Eddie Rucker scripsit: > > > 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? > > Well, in general all the trig functions first cast their argument to a float; > I think everyone expects that in whatever language, though some do provide > integer square root functions, probably because they're easy to implement. > Ok. I can live with that. I another note, mz-scheme says (log 0) is undefined and (log 0.0) is -inf.0. IOW, It really does the right thing. e.r. |