To write a python program to find the inverse of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
Importing numpy as np
assinging varaible and array to that
do the inverse calculation by using linalg.inv function
End the program
#Program to find the inverse of a matrix.
#Developed by: Sanjay G
#RegisterNumber:212222230131
import numpy as np
A=np.array([[1,0,3],[-1,2,-2],[2,3,-1]])
inverse=np.linalg.inv(A)
print(inverse)
Thus the inverse of given matrix is successfully solved using python program