MathGroup Archive 2004

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

Search the Archive

expresion with variables from a list


hello, I have what is probably a very easy question. I want to define
an expression which has as as variables the elements of some
previously defined list. like for example, if you have lists:
list1 = {a, b}
and
list2 ={a, b, c}
then I want to define an expression that can evaluate both the
variables in list one and in list two that is:
f[list_] := ...,
which evaluates f[list1] = f[a_, b_] and f[list2] = f[x_,y_,z_].

this must be pausible in some way, not?

thanx


  • Prev by Date: Re: Inflight magazine puzzle
  • Next by Date: RE: 5 variables Guass isnt working, matrix solution
  • Previous by thread: Re : definite and indefinite Integrate
  • Next by thread: expresion with variables from a list