To write a python program to find the inverse of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
import numpy
get the input matrix
Using the np.linalg.inv(), we can find the rank of the given matrix.
End the program.
#Program to find the inverse of a matrix.
#Developed by:Rajesh A
#RegisterNumber:22008551
import numpy as np
A = np.array([[6,2,3],[3,1,1],[10,3,4]])
B = np.linalg.inv(A)
print(B)
Thus the inverse of given matrix is successfully solved using python program