Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Equality involving expression with known real part and 0 should evaluate #10304
>>> d=S('-(3*2**pi)**(1/pi) + 2*3**(1/pi)') >>> d.is_comparable False >>> e = 1 + d*I >>> e.is_real # can't tell unless we know d is nonzero... >>> simplify(Eq(e,0)) Eq(1 + I*(-(3*2**pi)**(1/pi) + 2*3**(1/pi)), 0)
That final expression should be False since we know that the real part is non-zero (so it doesn't matter if we can't decide about the imaginary part).