>>>>from sympy import *
>>>>from sympy.abc import *
>>>>b=Not(B)
>>>>b
> Not(B)
>>>>B=True
>>>>Not(B)
> False
>>>>b
> Not(B)

Try replacing B in place with subs:

> b = Not(B)
> b.subs(B, True)
False
> b.subs(B, False)
True

/c

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to