Eigenvalue Function (Matlab Style)
Eigenvalues of a matrix
eig(a)
a |
real or complex square matrix |
Computes the eigenvalues of a square matrix of real or complex numbers,
using the R routine eigen
without computing the eigenvectors.
Vector of eigenvalues
eig(matrix(c(1,-1,-1,1), 2, 2)) #=> 2 0 eig(matrix(c(1,1,-1,1), 2, 2)) # complex values eig(matrix(c(0,1i,-1i,0), 2, 2)) # real values
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.