<awangdev>Pow(x, n)_2.java
public double pow(double x, int n) {
    	if (n == 0) {
    		return 1;
    	}
    	double num = pow(x, n/2);
    	if (n % 2 == 0) {
    		return num * num;
    	}
    	return num * num * x;
    }
public double sample_funcname ( double x , int n ) {
  if ( n == 0 ) {
    return 1 ;
  }
  double num = pow ( x , n / 2 ) ;
  if ( n % 2 == 0 ) {
    return num * num ;
  }
  return num * num * x ;
}
