import numpy as np
from numpy.linalg import eig
A = np.array([[1, 2], [4, 5]])
eigenvals, eigenvecs = eig(A)
print("EIGENVALUES:", eigenvals)
print("EIGENVECTORS:", eigenvecs)
EIGENVALUES: [-0.46410162 6.46410162]
EIGENVECTORS: [[-0.80689822 -0.34372377]
[ 0.59069049 -0.9390708 ]]