Message355687
Maybe we should hold-off on adding negative number support unless a compelling use case arises. It is telling that scipy.stats.hmean() and that MS Excel's harmean() haven't found justification to add negative number support.
In all likelihood, a negative input is an error in the input and users would be better-off seeing an exception raised. In a number of contexts, the negative input wouldn't make sense all:
* a 10 ohm resistor wired in parallel with a negative 5 ohm resistor
* travel 1 km at 5 kph then another 1 km at -10 kph
We really don't have to go down this route just because we can. The usual rule is to keep the API minimal unless real use cases arise to inform the design. |
|
Date |
User |
Action |
Args |
2019-10-30 00:42:20 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, taleinat, steven.daprano, WarrenWeckesser |
2019-10-30 00:42:20 | rhettinger | set | messageid: <1572396140.59.0.565683325533.issue38382@roundup.psfhosted.org> |
2019-10-30 00:42:20 | rhettinger | link | issue38382 messages |
2019-10-30 00:42:20 | rhettinger | create | |
|