02 February 2018 4 6K Report

I'm trying to get the eigenvalues and eigenvectors from a square matrix with the following commands:

import numpy as np

A = matrix([[5,2,0],[3,1,-5],[11,4,-4]])

λ, U = np.linalg.eig(A)

print ('Starting matrix:\n', A)

print('\nEigenvalues:\n', λ)

print('\nEigenvectors:\n', U)

The eigenvalues coincide with other softwares, but the eigenvector not. It makes me wonder what I'm doing wrong?

More Nip Nip's questions See All
Similar questions and discussions