Evaluating logarithms