On Thursday, 3 December 2015 20:13:12 UTC+1, Francesco Bonazzi wrote:
>
>
>
> On Thursday, 3 December 2015 19:45:10 UTC+1, Aaron Meurer wrote:
>>
>>
>> I mean how would it work internally? Right now replace just iterates 
>> all subexpressions (via .args) and replaces the ones that match.  You 
>> could make it so that Add(x, y, z) iterates subexpressions like (x, y, 
>> z, x + y, x + 3, y + 3, x + y + 3), but that gets combinatorially 
>> inefficient fast.
>>
>
> For associative and commutative expression, using python sets. They are 
> implemented in C and therefore fast.
>

I mean, subsets testing whenever there are no wilds. The remainder should 
be dealt with a lazy subset generator.

-- 
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/7fca7578-c400-44ee-900f-b4069d7b1c7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to