Currently new Complex(-Math.E.pow(2), 0).log() returns 2, but because -Math.E.pow(2) is a negative number it should return 2+pi*i
I have to find out how to calculate the logarithm of negative numbers and the logarithm of complex numbers where the real part is negative.
Currently
new Complex(-Math.E.pow(2), 0).log()returns 2, but because-Math.E.pow(2)is a negative number it should return2+pi*iI have to find out how to calculate the logarithm of negative numbers and the logarithm of complex numbers where the real part is negative.