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