ECN437Computing Eigenvalues Using Software Packages

ECN437Computing Eigenvalues Using Software Packages -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECN437 Computing Eigenvalues Using Software  Packages Here are a few examples showing how eigenvalues are computed in various  software packages. Most packages will also return the eigenvectors, if  requested. Using Ox: #include main() { decl a,eigs; a = <1, 2; 3, 4>; // Compute the eigenvalues and store them in eigs. // needed so that Ox can use eigs to return the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: eigenvalues. eigen( a, &amp;eigs ); print( eigs ); } Using Gauss: let x[2,2] = {1 2,3 4}; eig(x); Using Maple: # This line activates the linear algebra package. It produces two # messages about norm and trace being redefined, which is OK. with(linalg): # # Create a matrix # a:=matrix( [ [1,2],[3,4] ] ); # # Calculate its eigenvalues # b:=eigenvals(a); # # Exit from maple # quit;...
View Full Document

This note was uploaded on 04/05/2012 for the course ECN 437 taught by Professor Peterwilcoxen during the Spring '12 term at Syracuse.

Page1 / 2

ECN437Computing Eigenvalues Using Software Packages -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online