Re: writing a function with unknown number of paramters
- To: mathgroup at smc.vnet.net
- Subject: [mg60561] Re: [mg60519] writing a function with unknown number of paramters
- From: <bsyehuda at gmail.com>
- Date: Tue, 20 Sep 2005 05:19:29 -0400 (EDT)
- References: <200509190845.EAA23502@smc.vnet.net>
- Reply-to: bsyehuda at gmail.com
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Actually the Plot example you use is not "arbitrary number of variables", since f1, f2, and f3 are enclosed within a List header. You can use the same approach for your function, since a list has a length and you can determine the number of elements. Since your question is not specific, I would recommend you to read section 2.3.8 of the Mathematica book regards yehuda On 9/19/05, Someonekicked <someonekicked at comcast.net> wrote: > > I wanna write a function that can take an unknown number of parameters in > mathematica, how I can do that?? > > > For example, The built-in function Plot, > > Plot[{f1,f2,f3. }, {x, xmin, xmax}] > > can take an unknown number of functions then plot them. > > >
- References:
- writing a function with unknown number of paramters
- From: "Someonekicked" <someonekicked@comcast.net>
- writing a function with unknown number of paramters