logarithm with different bases