I am trying to write the following method in Java
double doublePow(double x, double pow);
Any pointers? Since both the base and the exponent can be double this is quite tricky for me. Any help would be appreciated.
examples:
x = doublePow (4, 0.5) ; // x = 2.0
x = doublePow (8, 0.333333333) ; // x = 1.9999999986137069
do not want to use the library function
Thank you in advance for any help!