Professional Documents
Culture Documents
CLASS 7 AUG 5 SEM 3 - Jupyter Notebook
CLASS 7 AUG 5 SEM 3 - Jupyter Notebook
CLASS 7
EIGEN VALUES
1.compute: (lambda)I
2.compute: (lambda)I - A
3.equate: det((lambda)I - A)=0
In [2]:
import numpy as np
D1=np.matrix([[1,2,3],[3,4,5],[5,6,7]])
print("The matrix D1= ",D1)
In [3]:
eigen_values= np.linalg.eigvals(D1)
print("The eigen values of the matrix D is: ",eigen_values)
INVERSE OF A MATRIX
D1**-1
In [5]:
Inverse=np.linalg.inv(D1)
print("The inverse of the matrix D1 is: ",Inverse)
In [ ]: