Evaluates mathematical expressions.