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-Thread: a07f3367d7,6a8952cbe009f3ed X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.75.8 with SMTP id y8mr734570wiv.1.1360922603671; Fri, 15 Feb 2013 02:03:23 -0800 (PST) MIME-Version: 1.0 Path: g1ni12261wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.meeh.mikalv.net!gandalf.srv.welterde.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Numerical calculations: Why not use fixed point types for everything? Date: Thu, 7 Feb 2013 21:17:10 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <4905b963-0036-4129-8050-fb26ef0154d6@googlegroups.com> <32314026-23ae-45b8-a4c5-e589e7d79de2@googlegroups.com> <64e3c342-d042-40a2-8a16-b1f0cdff9f16@googlegroups.com> <91527f7c-0679-4c21-95c7-a07f3fff265d@googlegroups.com> <4b654b06-f2d2-4ced-8508-c10e5c84e29d@googlegroups.com> <2414e19f-1d1c-4fb4-b727-76437ef099f7@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1360293435 16770 69.95.181.76 (8 Feb 2013 03:17:15 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 8 Feb 2013 03:17:15 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2013-02-07T21:17:10-06:00 List-Id: "Shark8" wrote in message news:2414e19f-1d1c-4fb4-b727-76437ef099f7@googlegroups.com... > Nicely explained, Randy. > > The sum formula is either n*(n-1)/2 or n*(n+1)/2, I forget which. Yup. I think which one is right depends on whether you start counting at 0 (in that case, it's the right-hand one) or at 1. It stuck me this morning that you can't do a transformation like this in the case of power series (like a Taylor series); I don't want to appear to be claiming that this can ALWAYS be done, but in most cases it can be done. And executing a handful of operations rather than hundreds is going to be faster and probably more accurate. Randy.