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.9 required=5.0 tests=BAYES_00 autolearn=ham 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-10 21:32:07 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!204.71.34.15!news-out.cwix.com!newsfeed.cwix.com!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C8C4189.1152D57B@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: I think - it's a bug... References: <3C8B184D.49214059@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 11 Mar 2002 05:32:06 GMT NNTP-Posting-Host: 209.86.211.222 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1015824726 209.86.211.222 (Sun, 10 Mar 2002 21:32:06 PST) NNTP-Posting-Date: Sun, 10 Mar 2002 21:32:06 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 10 Mar 2002 21:32:06 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:21034 Date: 2002-03-11T05:32:06+00:00 List-Id: Anatoly Chernyshev wrote: > > WITH ada.text_io,ada.numerics.elementary_functions; > USE ada.text_io, ada.numerics.elementary_functions; > PROCEDURE el_stat_fun IS > b : float := 7.5; > a:float:=4.0; > rr, z : float; > r : float := 4.0; > dz : float := 0.3; B, A, R, and Dz are constants. Why not make them named numbers? > BEGIN > FOR k IN 0..integer(b/dz) LOOP > z:=float(k)*dz; > put_line (float'image(1.0-(z/b))); > rr:=-a*sqrt((1.0-(z/b)**2))+a+r; The parentheses here look funny. Did you perhaps mean rr:=-a*sqrt((1.0-(z/b))**2)+a+r; ? > END LOOP; > END el_stat_fun; -- Jeff Carter "English bed-wetting types." Monty Python & the Holy Grail