Re: Simple List manipulation question
- To: mathgroup at smc.vnet.net
- Subject: [mg58483] Re: Simple List manipulation question
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Mon, 4 Jul 2005 02:24:04 -0400 (EDT)
- Organization: The Open University, Milton Keynes, England
- References: <da876l$iak$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
DAN BIKLE wrote: > Dear Mathematica Experts, > > Suppose I have a list like this: > {{1, 2, 3, 4, 5}, {1, 4, 9, 16, 25}} > > Is there a quick way to transform it into this: > > {{1,1},{2,4},{3,9},{4,16},{5,25}} > > ?? > > -Dan > -- > dbikle at gmail.com > In[1]:= Transpose[{{1, 2, 3, 4, 5}, {1, 4, 9, 16, 25}}] Out[1]= {{1, 1}, {2, 4}, {3, 9}, {4, 16}, {5, 25}} You should have a look at http://documents.wolfram.com/mathematica/book/section-2.4 (The Mathematica Book is also available in the help browser). Best regards, /J.M.