Re: multivariable functins with variable number of arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg13015] Re: multivariable functins with variable number of arguments
- From: dreissNOSPAM at nospam.earthlink.net (David Reiss)
- Date: Tue, 30 Jun 1998 00:26:12 -0400
- Organization: EarthLink Network, Inc.
- References: <6n4o1s$nie@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The simplest would be to have your function defined with a pattern of the form f[{x__}, {y__}] or as a different alternative, f[x_List, y__List]. In article <6n4o1s$nie at smc.vnet.net>, Tatyana Polenova <tatyana at chem.columbia.edu> wrote: > Hi, > I need to define a function like f[x__, y__] which would have two > classes of arguments x and y, each class containing a variable number > of arguments. I need to use this function later for making something > like multiplication tables between the arguments. What would be the > correct syntax for being able to later distinguish between the class x > and class y of arguments? > thank you very much > Tatyana Polenova -- David Reiss dreissNOSPAM at nospam.earthlink.net http://home.earthlink.net/~dreiss To send personal email, remove the words "nospam" and "NOSPAM" from the email address