To write a python program to find the Eigenvalues and Eigen Vectors
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
Start the program.
prepare the lists from the each inverseof a matrix and design in ip.array().
Using the np.linalg.eig(), we get two results (first is eigenvalue and second is eigenvector) of the given matrix.
End the program
#Program to find the eigen values and eigen vectors.
#Developed by:R.Subhashri
#RegisterNumber:23012776
import numpy as np
A=[[2,2],[1,3]]
values,vectors=np.linalg.eig(A)
print("Eigen values are",values,"and Eigen Vectors are",vectors)
Thus the Eigenvalue and Eigenvector is successfully solved using python program