Logarithm of an array