Skip to content

Instantly share code, notes, and snippets.

@tanveer-sayyed
Last active May 13, 2019 08:15
Show Gist options
  • Save tanveer-sayyed/5a54336d28a4dd44fed392cbe2382aef to your computer and use it in GitHub Desktop.
Save tanveer-sayyed/5a54336d28a4dd44fed392cbe2382aef to your computer and use it in GitHub Desktop.
updated A
A = np.array([[1, 4], [2, 3]])
print('A: \n', A)
lambdas, eigenVectors = np.linalg.eig(A)
eigenVectors = Scaling_Eigen_Vectors(eigenVectors= eigenVectors)
print('lambdas: \n', lambdas)
print('eigenvectors: \n', eigenVectors)
Plot_All(A, eigenVectors)
Output:
A:
[[1 4]
[2 3]]
lambdas:
[-1. 5.]
eigenvectors:
[[-1. -1. ]
[ 0.5 -1. ]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment