To write a python program to find the inverse of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
Import numpy module fot calculation
Initialize a variable'A' and make it as an array using np module
Using the linalg.inv(),we can find the inverse of matrix
End the program
#Program to find the inverse of a matrix.
#Developed by: MANOJ KUMAR S
#RegisterNumber: 23002959
import numpy as np
A=np.array([[6,2,3],[3,1,1],[10,3,4]])
inverse=np.linalg.inv(A)
print(inverse)
Thus the inverse of given matrix is successfully solved using python program