Message268916
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). |
|
Date |
User |
Action |
Args |
2016-06-20 17:47:32 | steven.daprano | set | recipients:
+ steven.daprano, tim.peters, mark.dickinson, belopolsky, serhiy.storchaka |
2016-06-20 17:47:32 | steven.daprano | set | messageid: <1466444852.38.0.335096102081.issue27353@psf.upfronthosting.co.za> |
2016-06-20 17:47:32 | steven.daprano | link | issue27353 messages |
2016-06-20 17:47:32 | steven.daprano | create | |
|