can someone explain why these 2 operations deliver different results? has it to do with some sort of maximum output? I don't mean the difference in time, but in the calculated result.
l = list(range(100000000)) a = np.arange(100000000) %time np.sum(a ** 2) CPU times: user 132 ms, sys: 217 ms, total: 348 ms Wall time: 347 ms 662921401752298880 %time sum([x ** 2 for x in l]) CPU times: user 23.8 s, sys: 1.32 s, total: 25.1 s Wall time: 25.1 s 333333328333333350000000