[issue37676] cmath.phase array support

Mark Dickinson report at bugs.python.org
Fri Jul 26 03:52:17 EDT 2019


Mark Dickinson <dickinsm at gmail.com> added the comment:

I think you want numpy.angle (https://docs.scipy.org/doc/numpy/reference/generated/numpy.angle.html).

NumPy is a third-party library, so it doesn't make sense to have the math or cmath functions be aware of NumPy arrays; none of the other math or cmath functions work on arrays. Generally for this sort of thing you want to look for a solution in NumPy or SciPy.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37676>
_______________________________________


More information about the Python-bugs-list mailing list