Ticket #3592: EigenTest.mo

File EigenTest.mo, 217 bytes (added by Adeel Asghar, 9 years ago)
Line 
1class EigenTest
2 import Modelica.Math.Matrices;
3 Real[3, 2] eigVal;
4 Real[3, 3] eigVec;
5 Real A[3, 3] = [1, 2, 3; 3, 4, 5; 2, 1, 4];
6algorithm
7 (eigVal, eigVec) := Matrices.eigenValues(A);
8end EigenTest;