MathGroup Archive 2010

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

Search the Archive

Re: From list to list of arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113300] Re: From list to list of arguments
  • From: niobe <ben.carbery at gmail.com>
  • Date: Sat, 23 Oct 2010 07:03:26 -0400 (EDT)
  • References: <i9r803$hp1$1@smc.vnet.net>

Try this:
Outer[Times, g[[1]], g[[2]], g[[3]]]


On Oct 22, 4:38 pm, Sam Takoy <sam.ta... at yahoo.com> wrote:

>
> 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: Re: Replacement in a held function
  • Next by Date: Re: Two questions related to Arrays
  • Previous by thread: Re: From list to list of arguments
  • Next by thread: Re: From list to list of arguments