Re: An Array of Equation Parameters
- To: mathgroup at smc.vnet.net
- Subject: [mg59895] Re: [mg59861] An Array of Equation Parameters
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 25 Aug 2005 06:33:29 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
m=Array[a,{3,4}]; f@@#&/@m {f(a(1,1),a(1,2),a(1,3),a(1,4)),f(a(2,1),a(2,2),a(2,3),a(2,4)),f(a( 3,1),a(3,2),a(3,3),a(3,4))} f@@@m {f(a(1,1),a(1,2),a(1,3),a(1,4)),f(a(2,1),a(2,2),a(2,3),a(2,4)),f(a( 3,1),a(3,2),a(3,3),a(3,4))} %==%% True To change the order of the parameters f[#[[3]],#[[2]],#[[1]],#[[4]]]&/@m {f(a(1,3),a(1,2),a(1,1),a(1,4)),f(a(2,3),a(2,2),a(2,1),a(2,4)),f(a( 3,3),a(3,2),a(3,1),a(3,4))} f@@#[[{3,2,1,4}]]&/@m {f(a(1,3),a(1,2),a(1,1),a(1,4)),f(a(2,3),a(2,2),a(2,1),a(2,4)),f(a( 3,3),a(3,2),a(3,1),a(3,4))} %==%% True Bob Hanlon > > From: acvwilson at gmail.com To: mathgroup at smc.vnet.net > Date: 2005/08/24 Wed AM 06:30:40 EDT > Subject: [mg59895] [mg59861] An Array of Equation Parameters > > This seems like a fairly easy problem in other languages but I can't > figure out how to do it in Mathematica. > > I am trying to set up an array of equation parameters, where each entry > in the array is a list of parameters for a function. I also don't know > how to get values out of a list to plug into the function. If anyone > knows how to solve this problem please help me out. > > Thanks, > Asa > >