Ask Your Question

Revision history [back]

The operation

real(p) == real(q)

creates an "inequality". As you can check, the output prints as

>> real(p) == real(q)
0 == (1/2)

You know that the above is false but it is not automatically evaluated within Sage. If you want to force the evaluation you need to run

>>> bool(real(p) == real(q))
False