| Author |
Comment/Response |
littledrifty
|
08/30/11 6:57pm
I have a list like this.
{{2,{2,4,6,8}},{5,{15,20,25,5}},...}
I want to divide the lists by the number leading in front of the list.
if that makes no sense. divide {2,4,6,8} by 2 and divide {15,20,25,5} by 5. this will pattern will continue.
right now im using table to duplicate the leading number and simply dividing two entire lists. for example {2,4,6,8}/{2,2,2,2}
each list is 300,000 long, so I am a little concerned with efficiency.
maybe I could get a mini lesson on what actually makes a program inefficient. remember I am a newb at mathematica, so please only mention the BIG efficiency wasters, as I am sure I will continue to be quite inefficient for a long while.
URL: , |
|