intersect is failing with complex/non-real numbers
Reported by Stéphane MOTTELET (@mottelet)
BUG DESCRIPTION:
----------------
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
* Scilab 6.0.1:
Zc=[%i,-%i]
intersect(Zc,Zc)
intersect(Zc,conj(Zc))
-->Zc=[%i,-%i]
Zc =
i - i
-->intersect(Zc,Zc)
ans =
[]
-->intersect(Zc,conj(Zc))
ans =
i
* Scilab branch-6.0:
Zc=[%i,-%i]
intersect(Zc,Zc)
intersect(Zc,conj(Zc))
--> Zc=[%i,-%i]
Zc =
i -i
--> intersect(Zc,Zc)
ans =
[]
--> intersect(Zc,conj(Zc))
ans =
[]
OTHER INFORMATION:
------------------
Output is incorrect in both versions. Problem discovered while trying to fix failing zp2ss unit test.