Post Reply 
An unexpected result involving sums of random numbers
03-01-2023, 05:21 PM (This post was last modified: 03-01-2023 05:50 PM by Gerson W. Barbosa.)
Post: #10
RE: An unexpected result involving sums of random numbers
(03-01-2023 03:54 AM)Gerson W. Barbosa Wrote:  Average: (3 + 2 + 4 + 2)/4 = 2.75

Actually the programs compute the average as

[(2 + 1 + 3 + 1) + 4]/4 = 2.75,

thus doing only six additions instead of ten.

Edited to fix a mistake
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: An unexpected result involving sums of random numbers - Gerson W. Barbosa - 03-01-2023 05:21 PM



User(s) browsing this thread: 8 Guest(s)