Hello Sympy group,

As usual I appreciate your time, you've been very helpful so far with
our upgrade. (We've moved to a newer version of sympy).

One thing that I found recently is that & and | seem to no longer be
supported. I see there is a ticket for this
http://code.google.com/p/sympy/issues/detail?id=3105&q=%7C&sort=-id&colspec=ID
Type Status Priority Milestone Reporter Summary Stars

the ticket seems to mention that And doesn't do anything meaningful.
However, it appears to work upon testing:

import sympy
p = sympy.Symbol('p')
q = sympy.Symbol('q')

(p>10) & (q>10) fails with TypeError: unsupported operand type(s) for
&: 'StrictInequality' and 'StrictInequality'

however, sympy.And appears to work:
temp = sympy.And(p>10, q>10)
temp.subs(dict(p=12, q=30))
True

Is there any work around currently?


-- 
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