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: [mg113299] Re: From list to list of arguments
  • From: Ray Koopman <koopman at sfu.ca>
  • Date: Sat, 23 Oct 2010 07:03:15 -0400 (EDT)
  • References: <i9r803$hp1$1@smc.vnet.net>

On Oct 21, 10: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?

Outer[Times,Sequence@@g]

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

Look up  BlankSequence


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