On Thu, Jan 17, 2013 at 10:08 AM, Ben Lucato <
ben.l...@gmail.com> 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.