Evaluating functions and comparing slopes