Computes the logarithm of x with the given base
         (the default base is 2).

def log(self, x, base=2):
        """Computes the logarithm of x with the given base
         (the default base is 2)."""
        return self._format_result(log(float(x), base))