Evaluate variable expressions involving rational numbers