commands → eigenvectors

eigenvectors(A,E)

The eigenvectors command returns a list of eigenvectors for a square matrix A and a list of eigenvalues E. The vectors are returned as columns of a matrix.

Examples

eigenvalues([[2,1],[1,2]]);
	[3., 1.]
eigenvectors([[2,1],[1,2]], [3,1]);
	[[1, -1], [1, 1]]

Algorithm

We compute a basis for the nullspace of (A-e*I) for each eigenvalue e.