00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <iostream>
00013 #include <string>
00014 #include <complex>
00015 #include "Matrix.h"
00016
00017 using namespace Zenautics;
00018 using namespace std;
00019
00020 int main( int argc, char* argv[] )
00021 {
00022 try
00023 {
00024
00025 Matrix X = "[1 2 3 4 5 6 7 8 9 10"];
00026 Matrix Y = X^2;
00027
00028
00029 }
00030 catch( MatrixException& matrix_exception )
00031 {
00032 cout << matrix_exception << endl;
00033 }
00034 catch ( ... )
00035 {
00036 cout << "Caught unknown exception" << endl;
00037 }
00038
00039 char anykey;
00040 cout << "Program complete.\n" << endl;
00041 cout << "Type something and hit enter: " << endl;
00042 cin >> anykey;
00043 return 0;
00044 }
00045