Updates:
Cc: asmeurer [email protected]
Comment #4 on issue 2283 by [email protected]: Non-iterative 'in'
http://code.google.com/p/sympy/issues/detail?id=2283
No, no. This won't solve the problem.
Your algorithm is good, but it needs to be modified slightly.
Consider this,
In [1]: l = x*gamma(x)*sin(x)*exp(y)
So, with your algorithm,
x*y in l would return True, as both x and y are individually 'in' the EXPR,
but that's not right.
You also need to check that they are in the same level, and multiplying
each other.
--
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.