Re: arranging a list
- To: mathgroup at smc.vnet.net
- Subject: [mg32226] Re: arranging a list
- From: Erk Jensen <Erk.Jensen at cern.ch>
- Date: Mon, 7 Jan 2002 03:17:00 -0500 (EST)
- References: <a192kf$7q3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Doron wrote:
>
> hello, i am interested in arranging a list :
> for example ->
> {{1.3010426069826053`*^-14}, {5.21666666666668`},
> {8.201960784313735`}, \
> {9.636171310629523`}, {10.005218929677142`}}
>
> How can I arrange this list to be of ordinary numbers{without the
> inner parentheses :
> {1.3010426069826053`*^-14, 5.21666666666668`, 8.201960784313735`, \
> 9.636171310629523`, 10.005218929677142`}
With
list = {{a}, {b}, {c}, {d}}
here are two (probably out of many more) possibilities:
Transpose[list][[1]]
list[[All, 1]]
... I'd prefer the 2nd way, since it is more general!
cheers, -erk-
--
Dr.-Ing. Erk JENSEN mailto:Erk.Jensen at cern.ch
CERN PS/RF L19510 http://cern.ch/Erk.Jensen
CH-1211 Geneva 23 Tel.: +41 22 76 74298
Switzerland Fax.: +41 22 76 78510