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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79720e5f1992e61e X-Google-Attributes: gid103376,public From: dsmith@clark.net (Doug Smith) Subject: Re: Math functions in Ada Date: 1997/05/05 Message-ID: #1/1 X-Deja-AN: 239476168 Distribution: world References: <5ka4nc$man@news1.mnsinc.com> <01bc5648$49652250$d08871a5@zeus> Organization: Clark Internet Services, Inc. Newsgroups: comp.lang.ada Date: 1997-05-05T00:00:00+00:00 List-Id: In article <01bc5648$49652250$d08871a5@zeus>, "David C. Hoos, Sr." 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 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 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: Doug