Check if sympy expression contains function

Viewed 581

Is there a way to programmatically determine if a SymPy expression contains sympy.Functions? For example, from a in

from sympy import *

f = Function('f')
g = Function('g')

a = f(3) + g(5) + 1.0

print(a)

I'd like to get the objects f and g.

1 Answers
Related