Documentation
Input
Enter order of matrix (n): 2
Enter elements of matrix:
2 1
5 3
Output
Inverse Matrix is:
3 -1
-5 2
Idea (Gauss–Jordan Inversion)
-
Start with matrix A
-
Augment it with Identity matrix I →
[A | I] -
Use row operations to convert A → I
-
The right side becomes A⁻¹