[issue41458] Avoid overflow/underflow in math.prod()

Raymond Hettinger report at bugs.python.org
Sun Aug 9 14:21:44 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

IIRC, both Factor and Julia use pairwise multiplication.  I'm guessing that the reason is that if you have an associative-reduce higher order function, you tend to use it everywhere even in cases where the benefits are negligible ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41458>
_______________________________________


More information about the Python-bugs-list mailing list