Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10523
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Parenthesis reduction |
| Date | 2012-06-18 09:49 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jrmtih$h75$1@smc.vnet.net> (permalink) |
| References | <jrlfoa$c2s$1@smc.vnet.net> |
On 17/06/2012 21:47, Mat' G. wrote:
> Which command should one use to get
> {a, b, c}, {d, e, f}, {g, h, i}
> from
> {{a, b, c}, {d, e, f}, {g, h, i}}
> ?
>
The problem is that your first expression isn't syntactically valid, so
I presume what you really mean is something like transforming
{{a, b, c}, {d, e, f}, {g, h, i}}
into say
fun[x,y,{a, b, c}, {d, e, f}, {g, h, i},z]
In other words that you want to embed it in something else:
In[1]:= tmp = {{a, b, c}, {d, e, f}, {g, h, i}}
Out[1]= {{a, b, c}, {d, e, f}, {g, h, i}}
In[2]:= fun[x, y, Sequence @@ tmp, z]
Out[2]= fun[x, y, {a, b, c}, {d, e, f}, {g, h, i}, z]
David Bailey
http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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