[sympy] Re: Question about cse() (common subexpression elimination)

2009-07-16 Thread Toon Verstraelen
Christophe wrote: > FIRST QUESTION > So why [(x0, log(x))] is not simply (x0, log(x)) ? Same > question for [x0*(1 + x0)*cos(y) + x0**2] ? That is how cse works. It stands for common subexpression elimination. You are probably using it in way that is more specific that the general

[sympy] Re: Question about cse() (common subexpression elimination)

2009-07-16 Thread Christophe
Toon Verstraelen a écrit : > That is how cse works. It stands for common subexpression elimination. You > are > probably using it in way that is more specific that the general purpose of > cse. > It might very well be that some expressions have multiple common > subexpressions. > Try for exa