Evaluating a function with an expression input