On Fri, Sep 12, 2014 at 2:56 PM, Rathmann <[email protected]> wrote: > Cool, thanks! I'll pull down your branch and play with it. > > For something like this, I think the main issue is defing a good interface, > and then how to document it. > > One caution is that SymPy does already define operations on Equality, e.g., > Eq(a,c)+c gives c+(a==b). > Where the latter makes sense if you think of the logical outcome of a test > being coerced c-style into an int.
SymPy booleans are not integers. This only works because Add doesn't explicitly disallow Eq, but the expression is not semantically meaningful. Aaron Meurer > > (In my Python, True+True gives 2) > > On Friday, September 12, 2014 4:34:23 AM UTC-7, Francesco Bonazzi wrote: >> >> Here we go: https://github.com/sympy/sympy/pull/8023 > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/346e8015-98f4-4bd9-aed6-23dadfc63110%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BGnpOWv0niw%2BOwuOJKMjM_RP92FWykR7PiSZOVQ4fWwQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
