Comment #14 on issue 2283 by [email protected]: Non-iterative 'in'
http://code.google.com/p/sympy/issues/detail?id=2283

Regarding comment 6, args_cnc splits the args up for you.

    >>> from sympy.abc import *
    >>> from sympy import *
    >>> var('n,m', commutative=False)
    (n, m)
    >>> (3*x*(y+1)*n*(n*m+3)).args_cnc()
    [set([1 + y, x, 3]), [n, 3 + n*m]]

And Ronan is probably right. Why do you want to know if it is 'in' the expr. What are you going to do next? There is .coeff, extract-multiplicatively, etc that might be the thing to use.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to