Return the logarithm of x to the given base. If the base not specified, returns the natural logarithm (base e) of x. This function has been overriden from math.log to work element-wise on iterables