MathGroup Archive 2002

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

Search the Archive

Re: Variable number of parameters

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33312] Re: [mg33300] Variable number of parameters
  • From: BobHanlon at aol.com
  • Date: Thu, 14 Mar 2002 19:51:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 3/14/02 3:10:46 AM, 
Sven.Richter at Xterminator.studfb.unibw-muenchen.de writes:

>I'd like to have a table with a variable number of parameters, like:
>Table[{m[1], m[2],..., m[n]}, {m[1], minVal, maxVal, step}, {m[2], minVal,
>maxVal, step}, ...,
>{m[n], minVal,  maxVal, step}]
>

n=3;

var = Table[ToExpression[
        "m"<>ToString[k]], {k,n}];

minVal = 2; maxVal = 6; step = 2;

Table[var, Evaluate[Sequence @@
 
      ({#, minVal, maxVal, step}& /@ var)]]


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Shadow a part of plot without affecting frame ticks.
  • Next by Date: Problem with Plot output
  • Previous by thread: Variable number of parameters
  • Next by thread: Re: Variable number of parameters