(expr, x)
return set(e.func for e in expr.atoms(Function) if x in e.free_symbols)
Find the types of functions in expr, to estimate the complexity.
Find the types of functions in expr, to estimate the complexity.
Find the types of functions in expr to estimate the complexity .
def _functions(expr, x):
    """ Find the types of functions in expr, to estimate the complexity. """
    from sympy import Function
    return set(e.func for e in expr.atoms(Function) if x in e.free_symbols)
def _functions ( expr , x ) : from sympy import Function return set ( e . func for e in expr . atoms ( Function ) if x in e . free_symbols )