This could also be part of the problem: > > In [48]: bool(x<0) > Out[48]: False > > If we are going to make <, >, <=, and >= shortcuts to Lt, Gt, Le, and Ge, > then we are > going to have to make then not able to return booleans. > > Does sympy handle true value through __nonzero__ (python 2.x) or __bool__ as well (py3k).
> See also the discussions at issues 1567 and 1646. > > If you enter the first one directly, it works: > > In [49]: And(0 < 0.5, 0.5 < 1) > Out[49]: True > > So there must be some problem with And not reevaluating after subs. > > OK, this must be an issue with _eval_subs then. Brian > Aaron Meurer > > -- > 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] <sympy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > -- 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.
