Re: Simple List manipulation question
- To: mathgroup at smc.vnet.net
- Subject: [mg58484] Re: Simple List manipulation question
- From: "Scout" <not at nothing.net>
- Date: Mon, 4 Jul 2005 02:24:05 -0400 (EDT)
- References: <da876l$iak$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Dan
I'm not a Math expert but your request
is not difficult to solve with a bit of mathematics.
Try to use Transpose built'in command:
In[1]:= jk ={{1, 2, 3, 4, 5}, {1, 4, 9, 16, 25}};
In[2]:= Transpose[ jk ]
Out[2]= {{1,1},{2,4},{3,9},{4,16},{5,25}}
~Scout~
"DAN BIKLE" <dbikle at gmail.com> ha scritto nel messaggio
news:da876l$iak$1 at smc.vnet.net...
> 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