To write a python program to find the Eigenvalues and Eigen Vectors
- Hardware – PCs
- Anaconda – Python 3.7 Installation / Moodle-Code Runner
first import numpy as np
assign the values for the variables
Using the np.linalg.eig(), we get two results (first is eigenvalue and second is eigenvector) of the given matrix.
programe is ended
Developed by:M.PRANATHI
Refrence number:22005710
import numpy as np
a=np.array([[4,2],[2,4]])
values,vectors=np.linalg.eig(a)
print("Eigen values are {} and Eigen Vectors are {}".format(values,vectors))
Thus the Eigenvalue and Eigenvector is successfully solved using python program