> So you want:
>
> In [4]: f = x+y
>
> In [5]: g = x+z
>
> In [6]: f*g
> Out[6]: (x + y)*(x + z)
>
> In [7]: f+g
> Out[7]: y + z + 2*x
>
> So [6] is ok, but you want [7] to be "x+y+x+z" instead? Is it because
> of memory requirements (see that issue for more details)?
>
>

Well something like this, let say

f = pow(x+1, 12) + pow(x-1, 12)

This is a very efficient representation of f in terms of the number of
operations
needed to evaluate f(x).  Once expanded it is not easy to go back to
an
efficient representation without knowing what f was.


BTW: I've tested the patch, great speed-up, great work!

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