Evaluating expressions with one variable