matrix^0, matrix.exp() and latex output of matrices