Re: Questions about functions.
- To: mathgroup@smc.vnet.net
- Subject: [mg11821] Re: Questions about functions.
- From: Leszek Sczaniecki <lsczan@concentric.net>
- Date: Tue, 31 Mar 1998 02:28:38 -0500
- Organization: Concentric Internet Services
- References: <6esdkf$57j@smc.vnet.net> <6f1lvm$f9n@smc.vnet.net> <6fi7ca$4ri@smc.vnet.net>
Is this what you want? Ad. 2 In[1]:= s[f_, g_][z_]:= (s[z]+f[z])*(s[z]+g[z]) In[2]:= s[Sin, Cos][Pi/4] 1 Pi 2 Out[2]= (------- + s[--]) Sqrt[2] 4 Ad 1. In[3]:= f[x__]:= {x} In[4]:= f[1, 2,3] Out[4]= {1, 2, 3} -Leszek El alchemista wrote: > 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