Message374666
How about this wording?
If alpha is smaller than 0.1, an occasional OverflowError can
arise when the variate exceeds the range of Python float.
I like using 0.1 because it's easy and gives us some wiggle room. The actual cutoff is lower:
>>> alpha = 0.05079
>>> sys.float_info.epsilon ** (-1.0 / alpha)
>>> alpha = 0.05078
>>> sys.float_info.epsilon ** (-1.0 / alpha)
Traceback (most recent call last):
File "<pyshell#48>", line 1, in <module>
sys.float_info.epsilon ** (-1.0 / alpha)
1.590779741838475e+308 |
|
Date |
User |
Action |
Args |
2020-08-01 19:36:19 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, David MacIver |
2020-08-01 19:36:19 | rhettinger | set | messageid: <1596310579.47.0.743107420758.issue41421@roundup.psfhosted.org> |
2020-08-01 19:36:19 | rhettinger | link | issue41421 messages |
2020-08-01 19:36:19 | rhettinger | create | |
|