Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: math

Macro: eiscg
Description: Computes the eigenvalues and eigenvectors of a complex general matrix

Usage: {wr, wi, zr, zi} = eiscg(ar{, ai})
Input:
ar n x m matrix
ai n x m matrix
Output:
wr n x 1 vector of real eigenvalues
wi n x 1 vector of imaginary eigenvalues
zr n x m matrix of real eigenvectors
zi m x m matrix of imaginary eigenvectors

Note:

Example:

library("math")
ar = #(3, 1)~#(-10, 9)
ai = #(2, 1)~#(1, 1)
{wr, wi, zr, zi} = eiscg(ar, ai)
wr
wi
zr
zi
Result:
Contents of wr
[1,]   3.7685 
[2,]   8.2315 
Contents of wi
[1,]   4.1888 
[2,]  -1.1888 
Contents of zr
[1,]  -5.2597 -0.75934 
[2,] -0.06684  0.083265 
Contents of zi
[1,]  -1.5739   1.2656 
[2,]   1.2655  -0.8959 

Library: math

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Fabian Noetzel
(C) MD*TECH Method and Data Technologies, 17.8.2000