Re: New proposal for math.e
- Posted by Juergen Luethje <j.lue at gmx?d?> Aug 02, 2007
- 532 views
Me wrote: <snip> > I can't exactly remember anymore, but probably I wrote and tested the > function log2() on my old PC (Windows 98, Pentium II processor). > Now I have Windows XP and a Centrino Duo Processor. Is it possible that > the new system makes disappear the imprecise results? At least I currently > have no other idea. <snip> This doesn't seem to be the reason why. Using the code:
function log2 (atom x) return log(x)/log(2) end function for i = 0 to 32 do printf(1, "%d: %0.16g\n", i & log2( power( 2, i ) )) end for
with the EXW.EXE interpreter 3.0.2, I can't manage to get imprecise results anymore, neither on my old system nor on my new system. *LOL* Maybe I made the tests with an older version of the interpreter, and something has changed regarding this point (e.g. a different version of the Watcom compiler was used to build the interpreter)? I only can guess. Regards, Juergen