|
|
|
|
|
by adrianmonk
2643 days ago
|
|
Also, their overflow avoidance technique fails on integers too, and for basically the same reason (lack of precision). Suppose you want to find the mean of (1, 1, 1). If you divide by the length of the list first, you're going to compute sum(1/3, 1/3, 1/3), which reduces to sum(0, 0, 0). And 0 < min(1, 1, 1). |
|