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 in np.array() in inverse of matrix
Using the np.linalg.matrix_rank(),we can find the inverse of given matrix.
Print the value and end the program.
#Program to find the inverse of a matrix.
#Developed by:Vasanthamukilan.M
#RegisterNumber:22001986
import numpy as np
a=np.array([[6,2,3],[3,1,1],[10,3,4]])
result=np.linalg.inv(a)
print(result)
Thus the inverse of given matrix is successfully solved using python program