delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/06/19:30:10

From: Stan Moore <smoore AT exis DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP reserves wrong int size
Date: Fri, 06 Jul 2001 19:21:57 -0400
Message-ID: <tfgcktstd6f0jesropg5rfi2tr974npv42@4ax.com>
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> <3b4348be DOT 81254401 AT news DOT primus DOT ca> <2950-Wed04Jul2001203020+0300-eliz AT is DOT elta DOT co DOT il> <3b4372cf DOT 92024930 AT news DOT primus DOT ca>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
NNTP-Posting-Host: digital-1-43.exis.net
X-Trace: grouper.exis.net 994461509 digital-1-43.exis.net (6 Jul 2001 19:18:29 -0500)
Lines: 35
Organization: A Customer of Exis Net Inc
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 04 Jul 2001 19:49:21 GMT, invalid AT erehwon DOT invalid (Graaagh the
Mighty) wrote:

>On Wed, 04 Jul 2001 20:30:20 +0300, "Eli Zaretskii"
><eliz AT is DOT elta DOT co DOT il> sat on a tribble, which squeaked:
>
>>In any decent course in numerical computation, the first lesson
>>teaches you that you cannot even solve a quadratic equation without
>>risking numerical pitfalls.
>
>Newton's method? That does division, iteratively. The quadratic
>formula? I doubt you'll have trouble with numerical instability except
>right on the threshold of zero.

try google -  you're quest is to find the paper "What every Computer
Scientist should know about floating point arithmetic." It meets at
least one of your oft stated requirements - it's free. Unfortunately
it's technical and requires actual reading. It's a very good
description of the trials and tribulations of floating point.

>Now please stop spouting your "numerical wisdom" and give some real,
>usable information about what might cause what was observed, given
>that all I did was assign some numbers to some doubles/long doubles
>and perform a few arithmetic operations on them -- not even inside of
>a loop.

I can't speak for Eli, but you sure have a strange way of asking for
help. I don't know how Eli will respond but I'm not interested in
doing your homework. The "numerical wisdom" is the result of some very
serious study by people who aren't afraid of "bucky bits". 

As for your code problems, you should consider the possibility very
real that noone here is going to be of much help to you without seeing
your code or some better examples. 
  

- Raw text -


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