As in the title.
Reproducer:
>>> mpmath.log(mpmath.inf + 1j * mpmath.inf) # expecting (+∞,π/4)
mpc(real='nan', imag='1.5707963267948966')
>>> mpmath.log(mpmath.inf - 1j * mpmath.inf) # expecting (+∞,-π/4)
mpc(real='nan', imag='-1.5707963267948966')
>>> mpmath.log(-mpmath.inf + 1j * mpmath.inf) # expecting (+∞,3π/4)
mpc(real='nan', imag='1.5707963267948966')
>>> mpmath.log(-mpmath.inf - 1j * mpmath.inf) # expecting (+∞,-3π/4) # corrected
mpc(real='nan', imag='-1.5707963267948966')
The expected values are defined in https://en.cppreference.com/w/cpp/numeric/complex/log as special values to complex log function.
As in the title.
Reproducer:
The expected values are defined in https://en.cppreference.com/w/cpp/numeric/complex/log as special values to complex log function.