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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba9a717d172afa4f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-08-31 16:03:53 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!news-in.mts.net!news1.mts.net.POSTED!not-for-mail From: "Nick J Chackowsky" Newsgroups: comp.lang.ada References: <39AD5DBD.972C97CA@brandonsd.mb.ca> <39AE0E2A.C11F53F4@baesystems.com> <39AEAE34.4E9753C8@brandonsd.mb.ca> <39AEB8A4.82E8F3D0@brandonsd.mb.ca> Subject: Re: School Assignment--Can this be simplified? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Thu, 31 Aug 2000 18:03:58 -0500 NNTP-Posting-Host: 205.200.235.44 X-Complaints-To: admin@mts.net X-Trace: news1.mts.net 967762994 205.200.235.44 (Thu, 31 Aug 2000 18:03:14 CDT) NNTP-Posting-Date: Thu, 31 Aug 2000 18:03:14 CDT Organization: MTS Internet Xref: supernews.google.com comp.lang.ada:451 Date: 2000-08-31T18:03:58-05:00 List-Id: Okay, how embarassing. Of course that works. I had tried it before and was getting compile errors, but I needed to use the ** operator from ada.numerics.elementary_functions rather than the default ** operator. What a GOOF I am. Thanks again for all the help, Pascal. Bye. "Pascal Obry" wrote in message news:uitsh8bv6.fsf@wanadoo.fr... > > N J Chackowsky writes: > > > And here's the revised version. Interesting that there is no pow() > > function defined in elementary_functions at all. > > Sure there is ! What about the "**" operator :) > > > Where should I look for > > standard numerical constants such as e, pi, etc.? > > > > In Ada.Numerics. > > << > 3. package Ada.Numerics is > pragma Pure(Numerics); > Argument_Error : exception; > Pi : constant := > 3.14159_26535_89793_23846_26433_83279_50288_41971_69399_37511; > e : constant := > 2.71828_18284_59045_23536_02874_71352_66249_77572_47093_69996; > end Ada.Numerics; > >> > > Pascal. > > -- > > --|------------------------------------------------------ > --| Pascal Obry Team-Ada Member > --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE > --|------------------------------------------------------ > --| http://perso.wanadoo.fr/pascal.obry > --| > --| "The best way to travel is by means of imagination"