I want to check if the result of an expression is in a set:

>>> from sympy import *
>>> var('a')
a
>>> print(a-a in {0})
False
>>> print(a - a == 0)
True

How can I make the first statement True?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to