[issue15996] pow() for complex numbers is rough around the edges

Mark Dickinson report at bugs.python.org
Fri Sep 21 16:09:00 CEST 2012


Mark Dickinson added the comment:

> C99 contains cpow. Perhaps we should use conditional compilation?

I dread to think what horrors lurk in OS math library implementations of cpow;  I suspect we'd soon find out, if we had used cpow and have any tests at all for special cases.

OS math libraries are bad enough at *float* math, let alone complex;  I'd rather not depend on them unless we have to.  And given that at least on Windows we need our own complex pow implementation anyway, I'd prefer to use the same code on all platforms, so that we have at least some degree of consistency from platform to platform.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15996>
_______________________________________


More information about the Python-bugs-list mailing list