Message170856
complex(1., 0.) ** complex(float('inf'), 0.) raises a ZeroDivisionError. In general, complex_power() needs to handle more corner cases. Barring a clear standard for pow() in C99, the documentation for pow 3 in glibc
http://www.kernel.org/doc/man-pages/online/pages/man3/pow.3.html
seems solid for a start, however it only describes behaviour for float/double values.
Where would be an appropriate place to add tests? I propose adding a test-case file similar to cmath_testcases.txt (attached) and a test runner similar to test_cmath.py |
|
Date |
User |
Action |
Args |
2012-09-20 22:00:28 | mattip | set | recipients:
+ mattip, mark.dickinson |
2012-09-20 22:00:28 | mattip | set | messageid: <1348178428.15.0.517718755216.issue15996@psf.upfronthosting.co.za> |
2012-09-20 22:00:27 | mattip | link | issue15996 messages |
2012-09-20 22:00:27 | mattip | create | |
|