To write a python program to find the inverse of a matrix
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
first we have to import module numpy as np
create a matrix and store the the matrix in a variable using np.array
we have to use the inbuilt functions "linalag.inv" in numpy module to find the inverse of the matrix and store it in another variable
print the the final transpose of a matrix
#Program to find the inverse of a matrix.
#Developed by: MOHAMED RIDWAN A
#RegisterNumber:23003133
import numpy as np
A=[[6,2,3],[3,1,1],[10,3,4]]
c=np.linalg.inv(A);
print(c)
![image](https://private-user-images.githubusercontent.com/146993368/292705490-8d4a53d2-73d5-47a8-bd0b-d3f9782e24a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ3NTQ1MzIsIm5iZiI6MTcxNDc1NDIzMiwicGF0aCI6Ii8xNDY5OTMzNjgvMjkyNzA1NDkwLThkNGE1M2QyLTczZDUtNDdhOC1iZDBiLWQzZjk3ODJlMjRhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUwM1QxNjM3MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iM2ZkYzczMjNkMDc1YjU1MDJmOGZiYTlkMjM2N2IwYTNhNTg2ZTJmNTFhYzI2MjQwOWI2Yzk0OTJlNmQ5NmVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Q4DcskNJzf6YwxHqVXM0onPUO0nXeqotf4WShrHMIY0)
Thus the inverse of given matrix is successfully solved using python program