public void powEquals(double exp){
  for (int i=0; i < A.length; i++)   for (int j=0; j < A[i].length; j++)   A[i][j]=Math.pow(A[i][j],exp);
}

public void powEquals ( double exp ) { for ( int i = 0 ; i < A . length ; i ++ ) for ( int j = 0 ; j < A [ i ] . length ; j ++ ) A [ i ] [ j ] = Math . pow ( A [ i ] [ j ] , exp ) ; }
x . powequals ( ) calculates the power of each element of the matrix . the result is stored in this matrix object again .
