delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/04/13:00:08

From: invalid AT erehwon DOT invalid (Graaagh the Mighty)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP reserves wrong int size
Organization: Low Charisma Anonymous
Message-ID: <3b4348be.81254401@news.primus.ca>
References: <9dde68b7 DOT 0106241053 DOT 2a385311 AT posting DOT google DOT com> <200106242138 DOT RAA18013 AT envy DOT delorie DOT com> <3b37e92e DOT 288745911 AT news DOT primus DOT ca> <200106260242 DOT WAA00615 AT envy DOT delorie DOT com> <3b3b4e40 DOT 213415946 AT news DOT primus DOT ca> <6480-Fri29Jun2001102012+0300-eliz AT is DOT elta DOT co DOT il> <3b3d95b2 DOT 362800381 AT news DOT primus DOT ca> <7704-Sat30Jun2001163109+0300-eliz AT is DOT elta DOT co DOT il>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 28
Date: Wed, 04 Jul 2001 16:51:18 GMT
NNTP-Posting-Host: 207.176.153.167
X-Complaints-To: news AT primus DOT ca
X-Trace: news1.tor.primus.ca 994265356 207.176.153.167 (Wed, 04 Jul 2001 12:49:16 EDT)
NNTP-Posting-Date: Wed, 04 Jul 2001 12:49:16 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 30 Jun 2001 16:31:09 +0300, "Eli Zaretskii"
<eliz AT is DOT elta DOT co DOT il> sat on a tribble, which squeaked:

>Yes, I understand.  And that precisely is the sign of a numerical bug,
>in most cases I've seen.

I would think if the problem was numerical instability of the
algorithm, the problem would be *more* pronounced when using a *lower*
precision. The exception being comparing floating point quantities for
exact equality, which my code is not doing. (That would tend to seem
to "work" better with lower precision quantities, of course.)

>Numerical computations are tricky.

These ones aren't. They just add and multiply and subtract and
compare, and they only compare for exceeding certain (small)
magnitudes -- they don't depend on an exact comparison with anything,
ever. Last I checked, for it to be numerically unstable the
calculation has to be either calculating with really huge numbers, or
doing division. (The canonical example of matrix inversion involves
division, and that's where poor choices of algorithm exhibit
instability.)

-- 
Bill Gates: "No computer will ever need more than 640K of RAM." -- 1980
"There's nobody getting rich writing software that I know of." -- 1980
"This antitrust thing will blow over." -- 1998
Combine neo, an underscore, and one thousand sixty-one to make my hotmail addy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019