fixed integration over the principle branch for the complex logarithm