Matrix.Inverse($M$) returns $M^{-1}$.
M = Matrix.New({{1,2},{2,1}}) Minv = Matrix.Inverse(M) print("The inverse of the matrix M") print(M) print("is") print(Minv) print("And Minv * M is") print(Minv*M)
The inverse of the matrix M { { 1 , 2 } , { 2 , 1 } } is { { -0.3333 , 0.6667 } , { 0.6667 , -0.3333 } } And Minv * M is { { 1 , 0 } , { 0 , 1 } }