Comment #2 on issue 1675 by and...@hotmail.com: Inconsistent behaviour of atoms() http://code.google.com/p/sympy/issues/detail?id=1675
OK - understood. Thanks for your reply. But then why is 'x' in the set found by 'w.atoms()', but 'f(x)' not in this set? And why is 'x' in the set found by 'w.atoms(Symbol)'? From what you say, I would expect that the only 'top-level' atoms in my expression 'w' are '2' and 'f(x)', and that as neither of these are bare Symbols, I should have to scan the atom 'f(x)' to find the lower level atom 'x'? Thanks for any explanation you can offer! Here's the reason I'm asking: I need to extract the unknown functions and independent variables from equations for my own application. I thought w.atoms(Function) and w.atoms(Symbol) would do this for me, but it's not doing what I expect. Best wishes, Andy -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---