Re: Questions about functions.
- To: mathgroup@smc.vnet.net
- Subject: [mg11814] Re: [mg11801] Questions about functions.
- From: "Jürgen Tischer" <jtischer@pitagoras.univalle.edu.co>
- Date: Tue, 31 Mar 1998 02:28:32 -0500
Hola Jaime, Q1: f[x___]:={x} (I made it three _ to include the case of an empty sequence. Q2: I think (I hope) you want something different of what I understood. The (I admit stupid) answer is s[e_,f_]:=(s+e)(s+f). That will do what you asked for, but I can't imagine what it could be good for. So maybe you would like to reformulate your question? J|rgen -----Original Message----- From: El alchemista <jaimeco@pecos.rc.arizona.edu> To: mathgroup@smc.vnet.net Subject: [mg11814] [mg11801] Questions about functions. >I will appreciate your input to these two questions. > >1 - How can I convert the sequence of all arguments of a function into >a list ? In vain I tried f[x__] := List @@ x > > >2 - How can I make functions which use their own names , for instance so >that s[e,f] for some symbol s and all expressions e , f >becomes (s+e)(s+f) ? > > >Many thanks > >jaime Combariza >jaimeco@arizona.edu > >