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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,63043e3a9a3d050f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 26 Oct 2010 07:29:37 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: loop problem with exit condition Date: Tue, 26 Oct 2010 13:38:46 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <3087f399-2cae-4bc8-bba1-e728943473bb@e14g2000yqe.googlegroups.com> <1spdu1yb2khd0$.rk8xvebgn574.dlg@40tude.net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-2FqZ6ToEc1e01l32cuj2JOTOiqx/SU523xYD4LbmdYzaxHfS4oQKRfvAtQwNsmNOAUxW9kFWUiTtie0!sGQRtzRs/rYbLPCvZ4Znph4Cdomr9CinWwhsBmUq02DGKe0ZzTWsEeHaUKZn7dr0MiP2aCaZ5zVe!b/U= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2022 Xref: g2news1.google.com comp.lang.ada:14794 Date: 2010-10-26T13:38:46+01:00 List-Id: On Tue, 26 Oct 2010 04:59:30 +0200, Yannick Duch�ne (Hibou57) wrote: >Le Sun, 26 Sep 2010 11:10:24 +0200, Dmitry A. Kazakov > a �crit: >> in your case the simplest way to remove bias would be to multiply the >> step: >> [�] >> Inner := Inner_Start + Inner_Step * Long_Float (J - 1); > >I did not knew that. Why is an iterative addition less accurate than a >multiplication ? Does it have something to deal with adjustment of the >exponent ? (the one of the float's internal representation) An iterative addition and a multiplication both have rounding error bounded by epsilon. N iterative additions versus one multiplication, however... - Brian