RE: Questions about functions.
- To: mathgroup@smc.vnet.net
- Subject: [mg11804] RE: [mg11801] Questions about functions.
- From: jmt <jmthomas@cybercable.tm.fr>
- Date: Tue, 31 Mar 1998 02:28:25 -0500
- Organization: TeA
- Return-Receipt-To: jmt <jmthomas@cybercable.tm.fr>
Try: f[x___]:={x} f[a,b] gives {a,b} ----------------------------------------------- Jean-Marie THOMAS Conseil et Audit en Ingenierie de Calcul www.cybercable.tm.fr/~jmthomas ------------------------------------------------ -----Message d'origine----- De: El alchemista [SMTP:jaimeco@pecos.rc.arizona.edu] Date: samedi 28 mars 1998 06:26 A: mathgroup@smc.vnet.net Objet: [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