double exp(double num,int power) { double r = num*num; for(int i=1,i+2