Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10518

Re: Parenthesis reduction

From awnl <awnl@gmx-topmail.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Parenthesis reduction
Date 2012-06-18 09:46 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jrmtdo$h4q$1@smc.vnet.net> (permalink)
References <jrlfoa$c2s$1@smc.vnet.net>

Show all headers | View raw


Hi,

> Which command should one use to get
> 	{a, b, c}, {d, e, f}, {g, h, i}

stricktly speaking this is not a valid mathematica expression, so it 
can't be done. But...

> from
> 	{{a, b, c}, {d, e, f}, {g, h, i}}
> ?

... you most probably want Sequence, which will create something that 
you can pass to a function:


arglist = {{a, b, c}, {d, e, f}, {g, h, i}}

argseq = Sequence@@arglist;

f[argseq]

of course you can also directly "Apply" (@@ is the shortcut for "Apply") 
the function to the list of arguments:

f@@aglist

hth,

albert

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Parenthesis reduction "Mat' G\." <ellocomateo@free.fr> - 2012-06-17 20:47 +0000
  Re: Parenthesis reduction awnl <awnl@gmx-topmail.de> - 2012-06-18 09:46 +0000
  Re: Parenthesis reduction Yves Klett <yves.klett@googlemail.com> - 2012-06-18 09:48 +0000
    Re: Parenthesis reduction "Nasser M. Abbasi" <nma@12000.org> - 2012-06-19 07:14 +0000
      Re: Parenthesis reduction John Doty <noqsiaerospace@gmail.com> - 2012-06-20 07:52 +0000
  Re: Parenthesis reduction David Bailey <dave@removedbailey.co.uk> - 2012-06-18 09:49 +0000
  Re: Parenthesis reduction David Reiss <dbreiss@gmail.com> - 2012-06-18 09:43 +0000
  Re: Parenthesis reduction "Nasser M. Abbasi" <nma@12000.org> - 2012-06-18 09:44 +0000

csiph-web