From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15050 invoked from network); 29 Jul 1999 19:46:56 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Jul 1999 19:46:56 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA29992 for ; Thu, 29 Jul 1999 15:46:54 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Thu, 29 Jul 1999 14:51:25 -0500 Received: by paralleldata.com from paralleldata.com (207.136.52.10::mail daemon; unverified,SLMail V2.5); Thu, 29 Jul 1999 14:51:24 -0500 Sender: "Wsb" Message-ID: <37A0AFD5.29089BFC@paralleldata.com> Date: Thu, 29 Jul 1999 14:47:33 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Float Pt Precision References: <199907291557.LAA17800@saaz.cam.nist.gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Harvey J. Stein" wrote: > > "Michael J. Donahue" writes: > > > The difference in the floating point calculations on the x86 vs the > > Alpha trace back to the hardware implementations. The extra > > precision in the x86 makes life much easier---it narrows the window > > of numerical instability in almost every situation. > > Can you substantiate this? I've found x86 arithmetic to be > substantially harder to work with because the excess precision shows > up unpredicably. After setting two different variables via the same > computation it's possible for the two variables to be not equal. It > depends on exactly what goes into registers when. This problem > doesn't exist on the alphas. > Just a programming style hint. Never do "if(fpval1 == fpval2)". Alway do "if(ABS(fpval1-fpval2) < epsilon)". Pick an epsilon that makes sense for your algorithm and the machine it's running on. Wes