Evaluating functions - Linear and quadratic or cubic