format pow(x,n) function.