Integral logarithm calculation now works with complex numbers