logarithms for cat