poly(1,"x")^(2+0*%i) // => Invalid exponent
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
poly(1,"x")^(2+0*%i) /: => Invalid exponent
When the exponent is real although it is complex-encoded, the operation could be handled normally. It should be rejected not with respect to encoding but wrt the imag() value.
This error prevents storing in the same matrix as possible container real (here integer) exponents on one hand, and other related truly complex values in the other hand.
ERROR LOG:
----------
Invalid exponent
HOW TO REPRODUCE THE BUG:
-------------------------
poly(1,"x")^(2+0*%i)