powered by
eig(a)
eigen
compan
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
Run the code above in your browser using DataLab