Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.
>


  • Prev by Date: Re: Raise lists of a list to powers
  • Next by Date: Re: assigning parameters from a matrix
  • Previous by thread: Re: assigning parameters from a matrix
  • Next by thread: Re: assigning parameters from a matrix