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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: Marin David Condic Subject: Re: Calculating SQRT in ADA Date: 1999/03/24 Message-ID: <36F903EB.DF84D4FF@pwfl.com>#1/1 X-Deja-AN: 458407429 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <87aex3pue4.fsf@mihalis.ix.netcom.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-03-24T00:00:00+00:00 List-Id: Chris Morgan wrote: > > "cmcrae" writes: > > > I am trying to calculate the SQRT in ADA. Is there a function that I > > can access? > > Look for sqrt in the Ada Language Reference Manual. There, that wasn't > too hard was it? I believe the original poster is using Ada83 - although he has not been explicit about this. In which case, there may be vendor supplied routines, but not standard ones to be looked up in the RM. If "cmcrae" were to provide the language version (83/95), the compiler and OS, we might be able to provide some help. Without that info, the best I can suggest is to a) check with the Public Ada Library and maybe http://www.adahome.com/ for sources of preexisting code or b) look up an algorithm and implement one from scratch. Its not that big a job. (I used to have a Sqrt which I think used Newton-Raphson - I just don't remember where I put it! ;-) MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.***