From: "Nick J Chackowsky" <nick@arcticmail.com>
Subject: Re: School Assignment--Can this be simplified?
Date: Thu, 31 Aug 2000 18:03:58 -0500
Date: 2000-08-31T18:03:58-05:00 [thread overview]
Message-ID: <SuBr5.10074$Io1.43672@news1.mts.net> (raw)
In-Reply-To: uitsh8bv6.fsf@wanadoo.fr
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" <p.obry@wanadoo.fr> wrote in message
news:uitsh8bv6.fsf@wanadoo.fr...
>
> N J Chackowsky <chackowsky@brandonsd.mb.ca> 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"
next prev parent reply other threads:[~2000-08-31 23:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-30 0:00 School Assignment--Can this be simplified? N J Chackowsky
2000-08-30 0:00 ` tmoran
2000-08-30 0:00 ` Keith Thompson
2000-08-30 0:00 ` Pascal Obry
2000-08-31 0:00 ` Martin Dowie
2000-08-31 11:31 ` Simon Wright
2000-08-31 11:51 ` Martin Dowie
2000-08-31 18:35 ` N J Chackowsky
2000-08-31 19:19 ` N J Chackowsky
2000-08-31 19:33 ` Pascal Obry
2000-08-31 23:03 ` Nick J Chackowsky [this message]
2000-09-01 1:02 ` tmoran
2000-09-01 4:14 ` Robert Dewar
2000-09-01 17:51 ` tmoran
2000-09-02 3:12 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox