Logarithms implemented in JS, PHP and Python.