Message272911
"Just for fun, here's a recipe for a correctly-rounded nth root operation for positive finite floats. I'm not suggesting using this in the business logic: it's likely way too slow (especially for large n), but it may have a use in the tests."
I don't know well the statistics module, but it looks like it doesn't use directly floats, more a somehow higher level type of numbers to try to reduce rounding errors. For me, the math module is a thin wrapper on C library math functions, except of a few functions specific to Python like math.factorial. But the statistics module is at a higher level. Maybe we should draw a line between accuracy and speed. For example, explain in the statistics module that the module is designed for accuracy?
Sorry if I completly misunderstood the design of the statistics module :-) |
|
Date |
User |
Action |
Args |
2016-08-17 08:31:24 | vstinner | set | recipients:
+ vstinner, tim.peters, rhettinger, mark.dickinson, ned.deily, steven.daprano, martin.panter |
2016-08-17 08:31:24 | vstinner | set | messageid: <1471422684.88.0.387252564541.issue27761@psf.upfronthosting.co.za> |
2016-08-17 08:31:24 | vstinner | link | issue27761 messages |
2016-08-17 08:31:24 | vstinner | create | |
|