Dear friends,
I have a sample c-like code about how to improve the POW (power function) and
you could maybe find it useful for calc.
// sample code start
double pow (double number,int exponent)
{
int i=0;
double result=0;
if (number=0) return 0;
if (exponent=0) return 1;
while (exponent)
{
if (exponent/2) result=result*number;
number=number*number;
exponent=exponent/2;
}
return result;
}
// sample code end
My sample code is just a Thank You! to all OpenOffice.org developers for this
great piece of software.
Best Regards,
Nikos Trivlis
Hellas
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/