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,33411c81953c1a23 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Ada83 Exponentiation HELP !!! Date: 1999/12/13 Message-ID: <83290d$p91$1@fir.prod.itd.earthlink.net>#1/1 X-Deja-AN: 559991374 Content-Transfer-Encoding: 7bit References: <831tka$rue$1@tobruk.sydney.gecm.com> X-Posted-Path-Was: not-for-mail Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: 13 Dec 1999 07:59:09 GMT X-ELN-Insert-Date: Mon Dec 13 00:05:03 1999 Organization: Ada95 Press, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-13T00:00:00+00:00 List-Id: jxredi wrote in message news:831tka$rue$1@tobruk.sydney.gecm.com... > Can anyone help me with the following : > > I understand that in Ada83, 6^3 is represented as 6**3, where 6 can be > int or real, > and 3 can only be an INTEGER. > > So how do I represent in ada83 this ..... --> 6^(1.3) where 1.3 is type > REAL. You either need a third-party math library, or possibly your compiler includes a math library, or possibly you could interface to the C library. Since you gave no clue as to the compiler you're using, nor the platform (Hardware and OS), it's difficult to be more specific with recommendations. In any case, a function with the signature function "**"(Left, Right : Real) return Real; can be implemented, or is implemented in a math library to do this. With such a function implemented and visible in the current scope, then you can say 6.0 ** 1.3, or whatever. Incidentally the Ada language does _not_ define a type Real, so I assume that Real has been declared somewhere in your code, or in a library you have mentioned in a context clause.