MTM
eig
compute the eigenvalues and eigenvectors of a matrix
Calling Sequence
Parameters
Description
Examples
l = eig(A)
[V,L] = eig(A)
[V,L,N] = eig(A)
A
-
matrix
The function eig(A) computes the eigenvalues and eigenvectors of the matrix A. That is, for each eigenvalue lambda of A, it solves the linear system (I * lambda - A) * X= 0 for X.
When the function is called using the form l := eig(A), the returned value of l is a column Vector containing the eigenvalues of A.
When the function is called using the form V,L := eig(A), the returned value of L is a Matrix with the eigenvalues of A along the main diagonal, and the returned value of V is a Matrix whose columns are the eigenvectors of A.
When the function is called using the form V,L,N := eig(A), L and V are as described above. N is a row vector of indices, one for each linearly independent eigenvector of A, such that the vector corresponding to the ith column of V has eigenvalue L[N[i],N[i]].
with⁡MTM:
A≔Matrix⁡1,2,1,2,4,2,2,8,1
A≔121242281
l≔eig⁡A
l≔03+223−22
V,L≔eig⁡A
V,L≔9⁢3+22−5+7⁢22⁢2+229⁢3−22−5−7⁢22⁢2−22−3216+22−5+7⁢2216−22−5−7⁢2214111,3+220003−220000
V,L,N≔eig⁡A
V,L,N≔9⁢3+22−5+7⁢22⁢2+229⁢3−22−5−7⁢22⁢2−22−3216+22−5+7⁢2216−22−5−7⁢2214111,3+220003−220000,123
See Also
LinearAlgebra[Eigenvalues]
LinearAlgebra[Eigenvectors]
MTM[jordan]
MTM[poly]
MTM[svd]
Download Help Document