Evaluating expressions for given values of x