[issue27353] Add nroot function to math

Mark Dickinson report at bugs.python.org
Tue Jun 21 12:27:23 EDT 2016


Mark Dickinson added the comment:

[Raymond, quoting Matlab]

> in cases where both real and complex roots exist, power returns only the complex roots.

Yes, this would be the main motivation for me, too, if only to be able to answer the many StackOverflow questions like this one: http://stackoverflow.com/questions/30923838/how-to-get-the-real-cube-root-of-a-negative-number-in-python3

+1 for a private function in the statistics module for now.

----------

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


More information about the Python-bugs-list mailing list