Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Scalars Instead of Lists with One Element

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83498] Re: Scalars Instead of Lists with One Element
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 21 Nov 2007 03:06:12 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fhu75c$72j$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

with:

x={2,7}

you get already

for x[[1]] 2 and for x[[2]] 7 and *not*
{1} or {7} ...


Regards
   Jens

Gregory Lypny wrote:
> Hello everyone,
> 
> Say I have the list x={2, 7}.  Is there a command I can use to get 2  
> rather than {2} when I ask for x[[1]], and 7 rather than {7} when I  
> ask for x[[2]]?  Doing so would solve my problem with my tables being  
> too deep to be able to cut and paste directly into the table objects  
> of other applications like word processors and spread sheets.
> 
> Regards,
> 
> 	Gregory
> 


  • Prev by Date: Re: Plot to Plot3D problem
  • Next by Date: ListAnimate and GIF format saving
  • Previous by thread: Re: Scalars Instead of Lists with One Element
  • Next by thread: Re: Scalars Instead of Lists with One Element