Re: buliding on functions
- To: mathgroup at smc.vnet.net
- Subject: [mg79174] Re: buliding on functions
- From: "JGBoone at gmail.com" <JGBoone at gmail.com>
- Date: Fri, 20 Jul 2007 03:27:19 -0400 (EDT)
- References: <f7hqgu$q4u$1@smc.vnet.net>
On Jul 16, 11:18 pm, Bob Hanlon <hanl... at cox.net> wrote: > list1 = {a1, a2, a3}; > list2 = {b1, b2, b3}; > list3 = {c1, c2, c3}; > > func = {f1, f2, f3}; > > Map[#, {list1, list2, list3}, {2}] & /@ func > > {{{f1[a1], f1[a2], f1[a3]}, {f1[b1], f1[b2], f1[b3]}, > {f1[c1], f1[c2], f1[c3]}}, {{f2[a1], f2[a2], f2[a3]}, > {f2[b1], f2[b2], f2[b3]}, {f2[c1], f2[c2], f2[c3]}}, > {{f3[a1], f3[a2], f3[a3]}, {f3[b1], f3[b2], f3[b3]}, > {f3[c1], f3[c2], f3[c3]}}} > > Bob Hanlon > > ---- "JGBo... at gmail.com" <JGBo... at gmail.com> wrote: > > so i have a group functions that i want to work on three list at the > > same time. everytime i've tryed to get mathematica to run through all > > at the smae time. i find out the functions only acted on one list. any > > ideas? This still goes from a to b to c. i need the functions to run functions a b and c at the same time