Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

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


  • Prev by Date: sporadic failure of SingularValueDecomposition[] in Mathematica 5.2
  • Next by Date: Re: Differences between recursions and limit
  • Previous by thread: writing a function with unknown number of paramters
  • Next by thread: Re: writing a function with unknown number of paramters