> Why not just write your own??
>
> It is not like the equations that deal with e to the x power are copyright.
---
double
epowx(int x)
{
double e = 2.718281828;
double result;
int i;
// e^0 = 1
if (x == 0)
result = 1;
else
// e^x = e*e*e...
if (x > 0) {
result = e;
for (i=2; i<x; i++)
result *= e;
}
else
// e^-x = 1 / e*e*e*e
if (x < 0) {
result = e;
for (i=2; i<-x; i++)
result *= e;
result = 1 / result;
}
return result;
}
---
this will only work for "x" when it is an integer.. if you want to
use a non integer value.. then.. well :)) log's :P the question you
need to ask is:
a) is my code going to be > 50K?
b) is it bad to make a user depend on an external library?
cheers
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/