]> granicus.if.org Git - python/commit
Remove support for nth root of negative numbers with odd powers.
authorSteven D'Aprano <steve@pearwood.info>
Wed, 24 Aug 2016 02:48:12 +0000 (12:48 +1000)
committerSteven D'Aprano <steve@pearwood.info>
Wed, 24 Aug 2016 02:48:12 +0000 (12:48 +1000)
commitd6ea3011c500ec2fd7793ebc593bb62a2217fa8a
tree4124a3c4aa1354376dc42f7a7e0dcab8cd0c7c36
parente5803d9d2f47dda8b6ff69e549066d1aa68b2370
Remove support for nth root of negative numbers with odd powers.

Although nth roots of negative numbers are real for odd n, the
statistics module doesn't make use of this. Remove support for
negative roots from the private _nth_root function, which
simplifies the test suite.
Lib/statistics.py
Lib/test/test_statistics.py