Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error in false statement

Hello

I write in SAGE the following

p=0+0*I

q=1/2+1/2*I

r=3/4+1/3*I

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

and it returns "false", but it is true because 0 is not equal to 1/2. Why?

Error in false statement

Hello

I write in SAGE the following

p=0+0*I

q=1/2+1/2*I

r=3/4+1/3*I

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

p=0+0*I
q=1/2+1/2*I
r=3/4+1/3*I
(real(p)==real(q))==false

and it returns "false", but it is true because 0 is not equal to 1/2. Why?