On Thu, Jan 17, 2013 at 10:08 AM, Ben Lucato <[email protected]> wrote: > An expression like this returns like so: > > (2 * sin(3 * x) + 3).find(sympy.Function) >>>> sin(3 * x) > > how do I get the output >
>>> eq sin(x) >>> [f.func for f in eq.atoms(Function)] [sin] If you know there is only one function then you can append [0] to the above list comprehension to get only that function...but be careful in case there were no functions. -- You received this message because you are subscribed to the Google Groups "sympy" 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?hl=en.
