BUG DESCRIPTION:
----------------
presence of spurious imaginary parts in coefficients of polynom (whose roots are the eigenvalues of A)
HOW TO REPRODUCE THE BUG:
-------------------------
a=[0.9,0,0.6,-1.4,-4.2;
0.2,0.1,-0.2,0.5,0.6;
-4.3,0,2.2,0,2.4;
-3.7,-0.5,2.4,-0.6,2.7;
6.4,0.1,-4,-0.5,-4];
poly(a,'x')
ans =
Real part
2 3 4 5
-0.6296 +15.4568x +35.104x +25.39x +1.4x +x
Imaginary part
2 3
-5.551D-17 -8.882D-16x -1.776D-15x +5.551D-17x
* Scilab 5.5.2 output:
-->poly(a,'x')
ans =
2 3 4 5
- 0.6296 + 15.4568x + 35.104x + 25.39x + 1.4x + x