The logarithmic is the counterpart to the exponential function. Its domain is defined for all real numbers greater than 0 (a value less than 0 will produce a complex result), and the range is defined for all real numbers.
We also define special variations:
Complexity analysis
For the sake of computational complexity analysis, we also define the iterated logarithm function:
The output denotes how many times the recursive function has to be applied to be less than 1. Some key properties:
- This is an extraordinarily short growing function. It is the closest function to we can possibly get.
- The iterative property, if :
Complex case
In the complex case:
Since it has infinitely many values, we sometimes take the principal argument of the complex number and create the principal branch of the logarithmic:
Even in the complex case, for negative real components the function fails to be analytic.