Ask Your Question

Revision history [back]

Error in false statement

I write in SAGE the following sentences

p=0+0*I

q=1/2+1/2*I

r=3/4+1/3*I

(real(p)==real(q))==false

As 0 is not equal to 1/2, this statement must be true, but SAGE says false. Why?