how to evaluate linear functions