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, mark.dickinson, terry.reedy
Date 2008-06-28.19:14:43
SpamBayes Score 0.0029833375
Marked as misclassified No
Message-id <1214680484.92.0.0250126529826.issue3168@psf.upfronthosting.co.za>
In-reply-to
Content
This is pretty bizarre, take a look at the following, 64-bit Pyhon 2.6b1 
-xO5.

Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.log(100.0, 2.0)
6.6438561897747253
>>> math.log(100.0) / math.log(2.0)
6.6438561897747253

>>> import cmath
>>> cmath.log(100.0, 2.0)
(0.71244151439608006-2.0556716794852954j)
>>> cmath.log(complex(100.0, 0), complex(2.0, 0)) 
(0.71244151439608006-2.0556716794852954j)

>>> cmath.log(2.0)
(0.69314718055994529+0j)
>>> cmath.log(100.0)
(4.6051701859880918+0j)
>>> cmath.log(100.0) / cmath.log(2.0)
(6.6438561897747253+0j)

There is only an issue with cmath.log(100.0, 2.0) but not with 
cmath.log(100.0) / cmath.log(2.0).  That seems to indicate that the 
c_quot function may be the root cause of the problem.
History
Date User Action Args
2008-06-28 19:14:45MrJean1setspambayes_score: 0.00298334 -> 0.0029833375
recipients: + MrJean1, terry.reedy, mark.dickinson
2008-06-28 19:14:44MrJean1setspambayes_score: 0.00298334 -> 0.00298334
messageid: <1214680484.92.0.0250126529826.issue3168@psf.upfronthosting.co.za>
2008-06-28 19:14:44MrJean1linkissue3168 messages
2008-06-28 19:14:43MrJean1create