This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients belopolsky, mark.dickinson, serhiy.storchaka, steven.daprano, tim.peters
Date 2016-06-20.17:47:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466444852.38.0.335096102081.issue27353@psf.upfronthosting.co.za>
In-reply-to
Content
I suggested on python-ideas that the math module be given a pure-Python front end. Guido wasn't too keen on that idea, so I won't push for it.

He did agree that having nroot in math was a reasonable idea. If I attach a pure Python implementation and tests, is anyone interested in porting it to C? I'm afraid that "Hello World" is about the level of my C skills.

As far as the geometric mean goes, Serhiy refers to a comment about the naive calculation likely overflowing. That's true, but I don't intend to do a naive calculation. In any case, even if I don't end up use nroot for geometric mean, it will still be useful as a more explicit and more accurate alternative to pow(x, 1/n).
History
Date User Action Args
2016-06-20 17:47:32steven.dapranosetrecipients: + steven.daprano, tim.peters, mark.dickinson, belopolsky, serhiy.storchaka
2016-06-20 17:47:32steven.dapranosetmessageid: <1466444852.38.0.335096102081.issue27353@psf.upfronthosting.co.za>
2016-06-20 17:47:32steven.dapranolinkissue27353 messages
2016-06-20 17:47:32steven.dapranocreate