From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ca933b3cddad4709 X-Google-Attributes: gid1164f8,public From: Joshua Cope Subject: Re: pow() bug? Date: 1997/07/23 Message-ID: <33D61299.50AB@star.enet.dec.com>#1/1 X-Deja-AN: 258320648 References: <5r229c$3ff@news-rocq.inria.fr> Organization: Digital Equipment Corporation Newsgroups: comp.sys.dec Robert Harley wrote: Any truth to the following rumour: Elsewhere on Wall Street, a trader felt a tickle in his belly when he noticed that the price of a particular bond was showing up differently on two different computers, both Digital Alphas. Fearing a bug in the most recent release of his software, he stepped through the code and discovered that the pow() function was returning different answers on the two machines. Well, it happened, but I'm not sure what the fault is. The trader in question also posted his results to the RISKS mailing list (http://catless.ncl.ac.uk/Risks); here's an extract from Volume 19, #24: |So, I wrote a stand alone program. Sure enough, the machine with the |latest rev motherboard (one that was just replaced by DEC) is |producing bad numbers. Time to try 'dxcalc', DEX's X calculator. |Yup. different numbers. How about perl? Yup, different numbers. How |about 'bc'? Duh, bc doesn't take floating point powers. Hmm... check |libm. Nope, they are the same. | |Bottom line: DEC will be here shortly. and in the next issue (#25): |So, as it turns out, DEC finally made it to our site and replaced the |motherboard. Everything worked fine after that. Unfortunately, I was on |vacation at the time and missed the service call (and the opportunity to |compare boards / chip batch numbers). I'm kind of bummed about that, but |alas, that's life. | |DEC claimed it was a bad chip on *that* board only. I suppose the chip could have somehow made it past the standard testing done after fabrication, or could have failed later on. I haven't heard of anyone reproducing the problem (yet?). Joshua Cope DIGITAL OpenVMS Engineering