Table of Contents
Inverse
Matrix.Inverse($M$) returns $M^{-1}$.
Example
Input
- Example.Quanty
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)
Result
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 } }