Comment #20 on issue 1829 by asmeurer: release 0.6.7 http://code.google.com/p/sympy/issues/detail?id=1829
The results are difference for the two Pythons: dhcp-baca-43:sympy-0.6.7-rc2 2 aaronmeurer$python2.5 Python 2.5.4 (r254:67916, Nov 1 2009, 11:52:29) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import math from sympy import * import cmath math.log(-2.0)
nan
math.log(-2.0+0.0j)
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can't convert complex to float; use abs(z)
cmath.log(-2.0)
(0.69314718055994529+3.1415926535897931j)
cmath.log(-2.0+0.0j)
(0.69314718055994529+3.1415926535897931j)
mpmath.math2.log(-2.0)
nan
mpmath.math2.log(-2.0+0.0j)
(0.69314718055994529+3.1415926535897931j) dhcp-baca-43:sympy-0.6.7-rc2 2 aaronmeurer$python2.6 import mathPython 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import math import cmath from sympy import mpmath math.log(-2.0)
Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: math domain error
math.log(-2.0+0.0j)
Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can't convert complex to float
cmath.log(-2.0)
(0.69314718055994529+3.1415926535897931j)
cmath.log(-2.0+0.0j)
(0.69314718055994529+3.1415926535897931j)
mpmath.math2.log(-2.0)
(0.69314718055994529+3.1415926535897931j)
mpmath.math2.log(-2.0+0.0j)
(0.69314718055994529+3.1415926535897931j) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.
