This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrJean1
Recipients MrJean1, loewis, mark.dickinson, skip.montanaro, terry.reedy
Date 2008-06-29.15:51:31
SpamBayes Score 0.000362915
Marked as misclassified No
Message-id <1214754694.4.0.609434839665.issue3167@psf.upfronthosting.co.za>
In-reply-to
Content
For comparison, 64-bit -xO5 Python build:

Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> cmath.exp(710.0 + 1.5j)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: math range error

>>> cmath.log(100,2)
(0.71244151439608006-2.0556716794852954j)
>>> cmath.log(complex(100,0), complex(2,0))
(0.71244151439608006-2.0556716794852954j)


64-bit -xO0 Python build:

Python 2.6b1 (r26b1:64398, Jun 28 2008, 11:02:57) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> cmath.exp(710.0 + 1.5j)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: math range error

>>> cmath.log(100,2)
(6.6438561897747253+0j)
>>> cmath.log(complex(100,0), complex(2,0))
(6.6438561897747253+0j)
History
Date User Action Args
2008-06-29 15:51:34MrJean1setspambayes_score: 0.000362915 -> 0.000362915
recipients: + MrJean1, loewis, skip.montanaro, terry.reedy, mark.dickinson
2008-06-29 15:51:34MrJean1setspambayes_score: 0.000362915 -> 0.000362915
messageid: <1214754694.4.0.609434839665.issue3167@psf.upfronthosting.co.za>
2008-06-29 15:51:33MrJean1linkissue3167 messages
2008-06-29 15:51:31MrJean1create