comp.lang.ada
 help / color / mirror / Atom feed
From: dsmith@clark.net (Doug Smith)
Subject: Re: Math functions in Ada
Date: 1997/05/05
Date: 1997-05-05T00:00:00+00:00	[thread overview]
Message-ID: <dsmith-0505970811120001@dsmith.clark.net> (raw)
In-Reply-To: 01bc5648$49652250$d08871a5@zeus


In article <01bc5648$49652250$d08871a5@zeus>, "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote:

> How about the package Ada.Numerics.Generic_Elementary_Functions, or one of
> its instantiations for long or short float types -- all provided with your
> gnat distribution?
> David C. Hoos, Sr.
> http://www.ada95.com
> http://www.dbhwww.com
> 
> William Frye <wfrye@mnsinc.com> wrote in article
> <5ka4nc$man@news1.mnsinc.com>...
> > 
> > Is a there a source of freeware Ada routines for simple math functions?
> > I am particularly interested in a routine  to calculate x**y where x and
> y are floating point numbers.  I am working with gnat on a Win95 platform.
> > 

If you haven't used generics before (or even if you have), it may not be
obvious that the functions are already available. Visit
 <http://sw-eng.falls-church.va.us/cgi-bin/webada/surfada?file=/opt/gnu/adainclude/a-nuelfu.ads#L20>
which is the predefined package Ada.Numerics.Elementary_Functions. However,
to see the list of functions (including "**") follow the link to the
generic as suggested above. The whole list of predefined packages can
be surfed at:
 <http://sw-eng.falls-church.va.us/cgi-bin/webada/file?template=predefined.html>

Doug
<mailto:dsmith@clark.net>




  reply	other threads:[~1997-05-05  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-01  0:00 Math functions in Ada William Frye
1997-05-01  0:00 ` David C. Hoos, Sr.
1997-05-05  0:00   ` Doug Smith [this message]
1997-05-06  0:00   ` Keith Thompson
1997-05-16  0:00 ` Jacob S. Rosenberg.
1997-05-16  0:00   ` Robert Dewar
1997-05-17  0:00   ` John G. Volan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox