Oct-14-2017, 09:10 PM
(This post was last modified: Oct-14-2017, 09:10 PM by sparkz_alot.)
(Oct-14-2017, 02:18 PM)buran Wrote: if the list has random numbers, formula will not help
Makes sense. The truth of the matter is I saw the formula flash by on a TV show and I wondered if it was real or just some gibberish they put on to make people think it was a real formula. When I compared the result to that of 'accumulate' I was surprised to see it actually worked. Then I wondered how fast each one was, but all I got from 'by_formula' was zeros, even when I changed the list size to 10,000,000 and the accuracy to 100 decimal places. So I'm glad to see you got an actual 'time'. I didn't even think of 'sum', so thanks for pointing that out.
My apologies to the author of the formula, they said your name but I thought that too was fake, so I forgot it as soon as they said it.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition