Computational Physics, Linear Algebra, Math, Mathematics, Science.
plt.plot(x, y) plotVectors([eigVals[0,0]*eigVecs[:,0], eigVals[1,1]*eigVecs[:,1]], cols=[orange, orange]) plt.plot(newX, newY) plt.xlim(-5, 5) plt.ylim(-5, 5) plt.show() A = np.array([[1,-1], [-1, 4]]) linearTransformation(A) We can see the unit circle in dark blue, the non scaled eigenvectors in