(1-%z)^2 .* %i => 0! : polynomial .* imaginary ==0 (p * %i is OK)
Reported by Samuel GOUGEON (@sgougeon)
Originally assigned to Pierre-Aime AGNEL
BUG DESCRIPTION:
----------------
The ".*" operator gives always 0 when it processes a polynomial and a pure imaginary number:
SCILAB 6.0-b1:
-------------
--> p = (1-%z)^2
p =
2
1 -2z +z
--> [p.*%i %i.*p]
ans =
Real part
0 0
Imaginary part
0 0 <<<=== WRONG
--> imag(p .* (2*%i))
ans =
0
SCILAB 5.5.2:
------------
-->p = (1-%z)^2
p =
2
1 - 2z + z
-->[p.*%i %i.*p]
ans =
Partie réelle
0 0
Partie imaginaire
2 2
1 - 2z + z 1 - 2z + z
ERROR LOG:
----------
none. Wrong answer
HOW TO REPRODUCE THE BUG:
-------------------------
p = (1-%z)^2
[p.*%i %i.*p]
imag(p .* (2*%i))
OTHER INFORMATION:
------------------
Big impact bug => CRITICAL