From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dbd5e8a2d19cc3f9 X-Google-Attributes: gidfee84,public From: Jarkko Hietaniemi Subject: Re: Inaccurate logarithm in Pascal Date: 1999/03/24 Message-ID: #1/1 X-Deja-AN: 458359084 References: <7d81qg$soq$1@news.net.uni-c.dk> <36ffa646.349337953@usenet.pa.dec.com> <7dad0r$cha$1@news.net.uni-c.dk> X-Complaints-To: usenet@nntp.hut.fi X-Trace: nntp.hut.fi 922279422 19388 130.233.224.50 (24 Mar 1999 12:43:42 GMT) Organization: IKI ry, Finland NNTP-Posting-Date: 24 Mar 1999 12:43:42 GMT Newsgroups: comp.unix.osf.osf1 "Morten Skaarup Jensen" writes: > in my case I have a sum of a lot of positive and negative numbers > that almost cancel each other out. >From numerical accuracy viewpoint that sounds intrinsically very dangerous, no matter what the language or the operating system. Are you certain you cannot reorder the computation so that you could avoid this "close shave"? -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen