Evaluates mathematical expression