inv() of some complex polynomials fails
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
--> mp = [%s+%i*0, 0; 0, 1]
mp =
Real part
s 0
0 1
Imaginary part
0 0
0 0
--> inv(mp)
at line 25 of function glever ( SCI\modules\linear_algebra\macros\glever.sci line 38 )
at line 34 of function invr ( SCI\modules\polynomials\macros\invr.sci line 46 )
at line 3 of function %p_inv ( SCI\modules\overloading\macros\%p_inv.sci line 15 )
in builtin inv
':': Wrong type for argument 3: Real scalar expected.
ERROR LOG:
----------
See above
HOW TO REPRODUCE THE BUG:
-------------------------
mp = [%s+%i*0, 0; 0, 1]
inv(mp)
OTHER INFORMATION:
------------------
Indicated @ https://github.com/rdbyk/balisc/issues/186