m=matrix(QQ,[[-1,2,2],[2,-1,2],[2,2,-1]])
m.inverse()