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 | terry.reedy |
|---|---|
| Recipients | MrJean1, mark.dickinson, terry.reedy |
| Date | 2008年06月27日.17:59:12 |
| SpamBayes Score | 0.05125106 |
| Marked as misclassified | No |
| Message-id | <1214589554.26.0.903798859399.issue3168@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Nasty. Here is the test extracted from test/test_cmath.py import math, cmath test_values = [0.01, 0.1, 0.2, 0.5, 0.9, 0.99] positive = test_values + [1.] + [1./x for x in test_values] for base in [0.5, 2., 10.]: for v in positive: z = cmath.log(v, base) x = math.log(v,base) print(base, v, z, x, z.real-x) On Winxp 3.0b1, |difference| is usually 0.0, else < 2.8e-17 6.6438561897747244 is, for instance, log2(100). It is also the first pair tested: log(.01, base=.5) 0.7124414133982310 is not close to any valid test output. On your system, is cmath64.log totally broken or just for base < 1? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月27日 17:59:14 | terry.reedy | set | spambayes_score: 0.0512511 -> 0.05125106 recipients: + terry.reedy, mark.dickinson, MrJean1 |
| 2008年06月27日 17:59:14 | terry.reedy | set | spambayes_score: 0.0512511 -> 0.0512511 messageid: <1214589554.26.0.903798859399.issue3168@psf.upfronthosting.co.za> |
| 2008年06月27日 17:59:13 | terry.reedy | link | issue3168 messages |
| 2008年06月27日 17:59:13 | terry.reedy | create | |