Hi,
On 26 October 2011 01:24, smichr <[email protected]> wrote:
> I would expect Add to behave the same as the + operator in this
> situation:
>
> >>> Add(Poly(0,x),Poly(x,x))
> Poly(0, x, domain='ZZ') + Poly(x, x, domain='ZZ')
> >>> _.args[0]+_.args[1]
> Poly(x, x, domain='ZZ')
>
> Is this an issue that should be opened?
>
Yes. However, we should be able to mark Add-like types (Poly, maybe RootSum,
{Taylor,Laurent}Series in future, ...) with some property/mixin which would
allow Add.flatten to work in a generic way (instead of implementing a
special case just for Poly).
>
> --
> 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.
>
>
Mateusz
--
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.