Deutsch English Français Italiano |
<864j6yr04b.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> Newsgroups: comp.arch Subject: Re: COBOL, Article on new mainframe use Date: Mon, 02 Sep 2024 00:22:12 -0700 Organization: A noiseless patient Spider Lines: 11 Message-ID: <864j6yr04b.fsf@linuxsc.com> References: <v9t3ih$2e8ee$1@dont-email.me> <memo.20240818192128.19028F@jgd.cix.co.uk> <v9u5eo$2ivte$3@dont-email.me> <v9uebs$8u3$1@gal.iecc.com> <TX2xO.60952$D6Ha.50816@fx37.iad> <va38p5$3i3ne$10@dont-email.me> <87zfp6bst1.fsf@nosuchdomain.example.com> <76220abd8c5b8ca50c4b7a5515d2a466@www.novabbs.org> <DBnxO.51591$UJj9.12778@fx33.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 02 Sep 2024 09:22:13 +0200 (CEST) Injection-Info: dont-email.me; posting-host="8d0da47a40f6e375f3916ecef59d9608"; logging-data="1986793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ncjM+cSVmM14rqd6DkTZ520zl5llippc=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:4qh8YNgoMqB+VwVPI4kJiQxicOc= sha1:RZqrOGwlyuE4qYx/aXEsQ9SiZoY= Bytes: 1731 EricP <ThatWouldBeTelling@thevillage.com> writes: > IF one wanted to raise an FP or decimal value to an integer power > by repeated multiplies and had to roll your own routine, then what > is the optimal way to do so? A harder problem than most people expect. Covered in The Art of Computer Programming, vol 2, "The Evaluation of Powers". In practical terms, repeated squaring and optionally multiplying is just fine. But it isn't always optimal.