Evaluation of mathematical expressions