Link to home
Start Free TrialLog in
Avatar of gromul
gromul

asked on

Power function that accepts real numbers

I need an algorithm or C++ pseudo code for exponentiation with real numbers, i.e. 2^3.5.

Thanks
Avatar of ozo
ozo
Flag of United States of America image

#include <math.h>
pow(2.0,3.5);
Avatar of gromul
gromul

ASKER

I got that, but how would I code this function myself?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
2*2*2*sqrt(2)