Logarithm with specific values