

def test_function():
    f = Function('f')
    (l, x) = map(Symbol, 'lx')
    assert (((exp(l(x)) * l(x)) / exp(l(x))) == l(x))
    assert (((exp(f(x)) * f(x)) / exp(f(x))) == f(x))

dataset/ETHPy150Open sympy/sympy/sympy/core/tests/test_eval.py test_function/original