Functions > Vector and Matrix > Array Characteristics > Example: Using genvals and genvecs Functions
  
Example: Using genvals and genvecs Functions
1. Define two square matrices.
Click to copy this expression
Click to copy this expression
2. Use eigenvals to calculate the eigenvalues of the above matrices.
Click to copy this expressionClick to copy this expression
3. Use genvals to compute a vector of eigenvalues.
Click to copy this expression
The genvals function returns a vector of computed eigenvalues, vi, each of which satisfies the generalized eigenvalue problem M · x = vi · N · x for its associated eigenvector xi.
4. Call genvecs with the last parameter set to L, meaning that left eigenvectors are calculated.
Click to copy this expression
The genvecs function returns a matrix containing the normalized left eigenvectors corresponding to the eigenvalues in the vector returned by genvals that was generated in the previous step.