Library: | math |
See also: | eiscg eisrs |
Quantlet: | eisrg | |
Description: | Computes the eigenvalues and eigenvectors of a real general matrix |
Usage: | {wr, wi, z} = eisrg(a) | |
Input: | ||
a | n x n matrix | |
Output: | ||
wr | n x 1 vector of real eigenvalues | |
wi | n x 1 vector of imaginary eigenvalues | |
z | n x n matrix of eigenvectors |
library("math") a = #(2, -2)~#(4, 6) {wr, wi, z} = eisrg(a) wr ;real eigenvalues wi ;imaginery eigenvalues z ;eigenvectors
Contents of wr [1,] 4 [2,] 4 Contents of wi [1,] 2 [2,] -2 Contents of z [1,] 1 1 [2,] 0 1