Re: assigning parameters from a matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg27090] Re: [mg27067] assigning parameters from a matrix
- From: BobHanlon at aol.com
- Date: Sun, 4 Feb 2001 02:58:16 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
paramList = {{a1, b1, c1}, {a2, b2, c2}, {a3, b3, c3}};
{f[a1,b1,c1], f[a2,b2,c2], f[a3,b3,c3]} ==
(f[#[[1]], #[[2]], #[[3]]]& /@ paramList) ==
(f[Sequence @@ #]& /@ paramList) ==
(f @@@ paramList) ==
MapThread[f, Transpose[paramList]] ==
Thread[f[Sequence @@ Transpose[paramList]]] ==
(f[a, b, c] /. (Thread[{a, b, c} -> #]& /@ paramList))
True
Bob Hanlon
In a message dated 2001/2/3 5:25:10 AM, flc at ualberta.ca writes:
>I have a function with 3 parameters, and I want to use a matrix to look
>at
>the shape of this function in response to specific combinations of the
>parameters (e.g., a = 1, b = 2, c = 3). I have created a matrix with my
>different sets of parameters and have used the ReadList command to enter
>into Mathematica. What command(s) do I use to apply the function to the
>matrix and look at the different outcomes? I am having repeated lack of
>success with Map.
>