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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fedc2d05e82c9174 X-Google-Attributes: gid103376,public From: Ole-Hjalmar Kristensen Subject: Re: Calculating SQRT in ADA Date: 1999/03/26 Message-ID: #1/1 X-Deja-AN: 459333497 X-NNTP-Posting-Host: fwall.clustra.com References: <7dbv6t$4u5$1@nnrp1.dejanews.com> <19990324201959.00800.00000708@ngol04.aol.com> <7dei9a$dvo$1@nnrp1.dejanews.com> Newsgroups: comp.lang.ada X-Complaints-To: abuse@telia.no Date: 1999-03-26T00:00:00+00:00 List-Id: robert_dewar@my-dejanews.com writes: > In article <19990324201959.00800.00000708@ngol04.aol.com>, > johnherro@aol.com (John Herro) wrote: > > I admit that in cases where execution time must be > > minimized, the extra programming effort is called for, > > but in general my first rule is to minimize > > program complexity instead. > > The best way to minimize effort in computing square roots > is to use a library routine written by someone who knows > how to write things efficiently. > > The example here is > > (a) subject to doing too many operations per iteration > (b) takes more time that necessary per iteration, due to > the very inefficient termination test > (c) is not fully last bit accurate > > Sqrt is an easy routine to write, and any library routine > will undoubtedly do the right things with respect to the > above three points! > > -----------== Posted via Deja News, The Discussion Network ==---------- > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Your faith in library routines is touching :-) -- E pluribus Unix