312 Introduction to C++ Programming and Graphics
//--- end the session
engClose(bouboulina);
return 0;
}
The session produces the following output on the screen:
V=
0.1395 - 0.4469i 0.1395 + 0.4469i 0.8390 -0.6200
-0.6325 -0.6325 -0.1584 0.0613
-0.0107 + 0.4167i -0.0107 - 0.4167i 0.4250 -0.6626
0.0052 + 0.4550i 0.0052 - 0.4550i 0.3008 0.4157
D=
-3.5013 + 6.8653i 0 0 0
0 -3.5013 - 6.8653i 0 0
0 0 5.5207 0
0 0 0 10.4819
C++ domain:
0.13951 0.13951 0.83896 -0.61997
-0.63248 -0.63248 -0.15835 0.06126
-0.01070 -0.01070 0.42498 -0.66261
0.00515 0.00515 0.30077 0.41574
-0.44691 0.44691 0.00000 0.00000
0.00000 -0.00000 0.00000 0.00000
0.41667 -0.41667 0.00000 0.00000
0.45500 -0.45500 0.00000 0.00000
-3.50127 0.00000 0.00000 0.00000
0.00000 -3.50127 0.00000 0.00000
0.00000 0.00000 5.52066 0.00000
0.00000 0.00000 0.00000 10.48188
6.86532 0.00000 0.00000 0.00000
0.00000 -6.86532 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
We have computed and retrieved the real and imaginary parts of the eigenvalues
and eigenvectors and stored them in individual matrices.