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
Enter the rows of the matrix for which the inverse is to be found
Use (np.linalg.inv(A)) to find the inverse of the matrix.
Print the value
#Program to find the inverse of a matrix.
#Developed by: Shavedha
#RegisterNumber:21500429
import numpy as np
A = np.array([[6,2,3],[3,1,1],[10,3,4]])
print(np.linalg.inv(A))
Thus the inverse of given matrix is successfully solved using python program