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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e70c13232dc4a26 X-Google-Attributes: gid103376,public From: john@assen.demon.co.uk (John McCabe) Subject: Re: logarithms on ada Date: 1997/03/04 Message-ID: <331c6ce7.856445@news.demon.co.uk>#1/1 X-Deja-AN: 223056900 X-NNTP-Posting-Host: assen.demon.co.uk References: <5fcqrs$ius@panther.Gsu.EDU> Newsgroups: comp.lang.ada Date: 1997-03-04T00:00:00+00:00 List-Id: gs01brf@panther.Gsu.EDU (Brian R Franklin) wrote: >I can't find this in my ADA manual. It's not in the Ada manual. >How can I do a logarithm in >ADA? The compiler doesn't seem to understand x := log(y); >The compiler complains that log is undefined. It appears in my >main program so I don't think I have to instantiate it. Is there >a mathematics package I need to declare using "with"? Yes there probably is and you'll have to read your compiler documentation to find it. TLD Ada for example provides a "math" package you need to with which defines log and log10 functions for various types. Best Regards John McCabe