These are chat archives for ellisonbg/phys202-2015

14th
Apr 2015
Brad Shaw
@bjshaw
Apr 14 2015 00:08
For numpyex02, what are people getting for their times? I have a hard time understanding why np_fact would be slower than loop_fact
brettavedisian
@brettavedisian
Apr 14 2015 01:50
Is anyone getting an index error "too many indices for array" on NumpyEx01?
Brian E. Granger
@ellisonbg
Apr 14 2015 14:19
For numpyex02 count the operations being done by both versions
brettavedisian
@brettavedisian
Apr 14 2015 18:17
@ellisonbg On numpyex01, the vizarray content isn't downloading and I cannot continue on the problem without it
Brad Shaw
@bjshaw
Apr 14 2015 21:44
For projecteuler8, is anyone else having difficulty obtaining the largest product? I can successfully calculate the products of all the possibilities of adjacent 13 digit groups, but appending those products to a list just yields an empty list, which is weird since I can successfully print out all my products fine if I try
Noah Sutton-Smolin
@telthien
Apr 14 2015 22:55
@bjshaw What are you doing to append them?
Noah Sutton-Smolin
@telthien
Apr 14 2015 23:09
Also, is a list the best way to do it?
hglanz
@hglanz
Apr 14 2015 23:12
@bjshaw I didn't have trouble finding the product, but it sounds like you're doing it differently than I did. I will echo @telthien "Is a list the best way to do it?"; i.e. Is it necessary to store all possible products in order to find the biggest one?
hglanz
@hglanz
Apr 14 2015 23:19

@bjshaw I apologize for the non-answer :P....possible ideas are 1) making sure you initialized the list you're appending them to, 2) check where you're doing append (wrt loops...), 3) how you're doing the append, 4) check that the thing you're appending actually is the integer product

I hope this helps!