Re: buliding on functions
- To: mathgroup at smc.vnet.net
- Subject: [mg79047] Re: [mg79027] buliding on functions
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 17 Jul 2007 03:17:48 -0400 (EDT)
- Reply-to: hanlonr at cox.net
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 ---- "JGBoone at gmail.com" <JGBoone 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? > >