Status: Accepted
Owner: asmeurer
Labels: Type-Enhancement Priority-Medium

New issue 1941 by asmeurer: Objects that know how to combine themselves
http://code.google.com/p/sympy/issues/detail?id=1941

This is related to issue 1908. When I met with Ondrej last summer, we worked on a core where objects knew how to combine themselves with respect to Mul and Add. See the handler branch at http://github.com/certik/sympyx/. The idea originally stemmed from issue 1336, but we soon discovered that it also simplifies the logic for things like O() (the order function), and oo, which combine abnormally with respect to Mul and Add. This could also be useful for issue 1940, so that the units could tell Mul that they need to stay together without Mul explicitly having to know about units. Right now, Mul.flatten is cluttered with code for handling all these things, and the only way to handle additional classes is to either completely separate them from Basic (as with Poly), or to
add more special case code in Mul.flatten.

Anyway, if we ever rework the core as suggested in issue 1908 or elsewhere, we should also look
into doing this too.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to