Evaluating a function at a numeric input