Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'run function many times to get many outputs.. h...' topicStudent Support Forum > General > "run function many times to get many outputs.. h..."

Next Comment >Help | Reply To Topic
Author Comment/Response
ggethebear
06/28/11 11:26pm

I have this function f[x_,y_] defined. it operates on two lists similar to these:
list1={{2,4,5},{6,5,7},{4,2,1},...} and
list2={{7,4,3},{2,7,5},{5,8,2},...}
the function operates on them as a pair to create an output

I now want to have the function operate on more pairs which are in lists in the form
LIST1={{{2,4,5},{6,5,7},{4,2,1},...},{{5,6,7},{4,8,3},{4,3,2},...},{{4,3,2},{5,6,3},{5,2,3},...},...} and
LIST2={{{7,4,3},{2,7,5},{5,8,2},...},{{6,2,8},{1,3,0},{3,0,1},...},{{3,2,9},{5,3,3},{6,7,1},...},...}

How do I operate on all pairs within the lists, instead of just one pair in my first example to create multiple outputs from each pair?


the first part of the two lists are a pair
{{2,4,5},{6,5,7},{4,2,1},...}
{{7,4,3},{2,7,5},{5,8,2},...}

the second part of the two lists are a pair
{{5,6,7},{4,8,3},{4,3,2},...}
{{6,2,8},{1,3,0},{3,0,1},...}

the third part of the two lists are a pair
{{4,3,2},{5,6,3},{5,2,3},...}
{3,2,9},{5,3,3},{6,7,1},...}

etc...


thanks so much!

URL: ,

Subject (listing for 'run function many times to get many outputs.. h...')
Author Date Posted
run function many times to get many outputs.. h... ggethebear 06/28/11 11:26pm
Re: run function many times to get many outputs... yehuda ben-s... 06/30/11 01:42am
Next Comment >Help | Reply To Topic