[issue27181] Add geometric mean to `statistics` module
Steven D'Aprano
report at bugs.python.org
Fri Aug 12 07:07:42 EDT 2016
Steven D'Aprano added the comment:
I thought about special-casing n=2 to math.sqrt, but as that's an
implementation detail I can make that change at any time. According
to my testing, math.pow(x, 0.5) is no worse than sqrt, so I'm not
sure if there's any advantage to having yet another branch.
I'd be interested in special-casing n=3 to math.cbrt (if and when it exists)
now that its a standard C99 function.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27181>
_______________________________________
More information about the Python-bugs-list
mailing list