I don't think it's implemented.

Note that in general you would have n choose 2 possibilities if you
have n extra terms. And that's not considering that you could add and
subtract anything and it would still technically be a valid match.

Aaron Meurer

On Tue, Feb 11, 2014 at 3:40 PM, Vincent MAILLE <htcvi...@gmail.com> wrote:
> Hi, is it possible to find all possible matches :
>
> exp = S('3*x**2+2*x**3')
> k, n, A,B  = Wild('k',exclude = [0]), Wild('n',exclude =
> set([0,1])),Wild('A'), Wild('B')
> T = (A+k*x**n+B).matches(exp)
>
> returns
>
> {k_: 2, n_: 3, A_: 0, B_: 3*x**2}
>
> But can I have :
> [{k_: 2, n_: 3, A_: 0, B_: 3*x**2}, {k_: 3, n_: 2, A_: 2*x**3, B_: 0}]
>
> Thanks
>
> Vincent
>
> --
> 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 sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to