delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/31/02:45:37

Date: Wed, 31 May 1995 08:15:22 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: ljeste01 AT msuacad DOT morehead-st DOT edu
Subject: Re: Math/rounding errors?
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>     For instance, passing 5.0 to the function should result in a value
> of 120.0.  Instead I get 118.401 from the djgpp version.  This is just
> not acceptable.
>     The code for the function is fairly simple.  It involves a few
> multiplications and divisions, and one call to exp().  There are no
> iterative loops to build up roundoff errors.  And even if there were,
> I wouldn't expect it to be this severe.

Why not post the code?  It's usually very hard (at least for some of us)
to second-guess a code without seeing it.

- Raw text -


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