[NumPy-Tickets] [NumPy] #2042: complex log breaks log(conj(x)) = conj(log(x)) invariant
NumPy Trac
numpy-tickets@scipy....
Wed Feb 8 22:15:06 CST 2012
#2042: complex log breaks log(conj(x)) = conj(log(x)) invariant
---------------------+------------------------------------------------------
Reporter: radford | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
---------------------+------------------------------------------------------
The following should both be true, but the second fails.
numpy.log(-1.0+0.0j) == numpy.pi * 1j
numpy.log(-1.0-0.0j) == -numpy.pi * 1j
Background: The c99 clog() function guarantees clog(conj(x)) ==
conj(clog(x)) and numpy attempts to conform to conform to the C99
standard, but doesn't in the above case.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2042>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list