comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: I think - it's a bug...
Date: Mon, 11 Mar 2002 09:15:12 -0600
Date: 2002-03-11T09:15:12-06:00	[thread overview]
Message-ID: <mailman.1015859342.23405.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3C8CC4EE.2CF4038E@despammed.com

There are two problems, viz.

   1.  When z is essentially equal to b but (say) 1 lsb greater,
         then z/b is greater than 1.0, causing a negative argument
         to sqrt.

   2.   The problem with commenting out the put_line statement I
         believe to be a documented case where the NT C runtime
         can leave the FPU in a bad state.

----- Original Message ----- 
From: "Wes Groleau" <wesgroleau@despammed.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Monday, March 11, 2002 8:53 AM
Subject: Re: I think - it's a bug...


> 
> > This is not a bug.  The problem comes about by not being aware of
> > the nature of floating point representation in computers.
> 
> Unless I misunderstood the original post, there IS a bug.
> 
> If commenting out this
> 
> > >       put_line (float'image(1.0-(z/b)));
> 
> causes this to stop raising an exception
> 
> > >       rr:=-a*sqrt((1.0-(z/b)**2))+a+r;
> 
> then I think there must be a bug in the optimizer.
> 
> But it should be sent to report@gnat.com and not to comp.lang.ada
> 
> -- 
> Wes Groleau
> http://freepages.rootsweb.com/~wgroleau
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 




  reply	other threads:[~2002-03-11 15:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-10  8:24 I think - it's a bug Anatoly Chernyshev
2002-03-10 12:58 ` David C. Hoos, Sr.
2002-03-11  5:33   ` Anatoly Chernyshev
2002-03-11 13:43     ` David C. Hoos
2002-03-11 16:13     ` Stephen Leake
2002-03-11  5:39   ` Jeffrey Carter
2002-03-11 14:53   ` Wes Groleau
2002-03-11 15:15     ` David C. Hoos [this message]
2002-03-11  5:32 ` Jeffrey Carter
2002-03-11  5:46   ` Anatoly Chernyshev
2002-03-11  8:19 ` Phil Thornley
2002-03-11 19:48 ` Anatoly Chernyshev
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox