To write a python program to find the inverse of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
import numpy as np
assign values for the arrays
Using the np.linalg.solve(), we can find the solutions.
End the program
import numpy as np
A=np.array ([[6,2,3],[3,1,1],[10,3,4]])
inv=np.linalg.inv(A)
print(inv)
Thus the inverse of given matrix is successfully solved using python program