Re: exp formula

From: Carlo Mocci (mocci@TIN.IT)
Date: 08/28/98


>This does need the pow() function, so I'm not sure
>how suitable that makes it (does the math library
>generally come with most, if not all, compilers?)

It does, the only problem with including math.h is that you have to
redefine the log() function that is in circle Mud because in math.h the
log() function is defined.
As I use pow() in my perform_group_gain function, the simplest (not a clean
way to do it, I know) way to do it, is to write my own pow function (I use
it only with an integer exponent, i.e.. (double)^(integer)).
x ^ 1.8 will require a more complex pow() function, then is better to use
math.h


Carlo Mocci - mocci@tin.it

Kabir
Coder of Dalila MUD
dalila.shopitaly.net 4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST