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-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,ba9a717d172afa4f
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2000-08-31 12:39:16 PST
Path:
supernews.google.com!sn-xit-02!sn-east!supernews.com!news.maxwell.syr.edu!oleane.net!oleane!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: School Assignment--Can this be simplified?
Date: 31 Aug 2000 21:33:01 +0200
Organization: Home
Message-ID:
References: <39AD5DBD.972C97CA@brandonsd.mb.ca>
<39AE0E2A.C11F53F4@baesystems.com> <39AEAE34.4E9753C8@brandonsd.mb.ca>
<39AEB8A4.82E8F3D0@brandonsd.mb.ca>
NNTP-Posting-Host: cergy-15-51.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 967750707 22932 164.138.109.51 (31 Aug 2000 19:38:27 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 31 Aug 2000 19:38:27 GMT
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
Xref: supernews.google.com comp.lang.ada:446
Date: 2000-08-31T19:38:27+00:00
List-Id:
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"