Steven D'Aprano <st...@pearwood.info> writes: > But this can give some protection against overflow of intermediate > values.
Might be simplest to just add the logarithms. Look up Kahan summation for how to do that while minimizing loss of precision. -- https://mail.python.org/mailman/listinfo/python-list