MathGroup Archive 2010

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

Search the Archive

From list to list of arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113290] From list to list of arguments
  • From: Sam Takoy <sam.takoy at yahoo.com>
  • Date: Fri, 22 Oct 2010 01:36:01 -0400 (EDT)

Hi,

Suppose I have a list of arrays, say g = {a, b, c} where a, b, and c are 
arrays, and I would like to calculate

Outer[Times, a, b, c]

how do I do it?

I tried

Apply[Outer[Times,#]&, g], as in Apply[Outer[Times, #] &, {{1}, {1}}], 
but that does not yield the right answer. So the question is: how does 
one convert a list {a, b, c} into arguments to a function of variable 
number of arguments? Thanks!


An auxiliary question: within the function f[x__] := ... what kind of 
object is x? It's not a list, but what is it?

Many thanks in advance,

Sam



  • Prev by Date: Replacement in a held function
  • Next by Date: Re: Table of tables
  • Previous by thread: Re: Replacement in a held function
  • Next by thread: Re: From list to list of arguments