From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2d09fa6592c24a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-11 07:09:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: I think - it's a bug... Date: Mon, 11 Mar 2002 09:15:12 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3C8B184D.49214059@yahoo.com> <3C8CC4EE.2CF4038E@despammed.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1015859343 92945 137.194.161.2 (11 Mar 2002 15:09:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 11 Mar 2002 15:09:03 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Original-Cc: wesgroleau@despammed.com Xref: archiver1.google.com comp.lang.ada:21054 Date: 2002-03-11T09:15:12-06:00 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" Newsgroups: comp.lang.ada To: 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 >