MathGroup Archive 1998

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

Search the Archive

Re: Questions about functions.



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




  • Prev by Date: Re: Questions about functions.
  • Next by Date: Re: Mathematica frustrations...
  • Prev by thread: Re: Questions about functions.
  • Next by thread: Re: FindRoot & Grobner basis