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: [mg83450] Re: [mg83418] Scalars Instead of Lists with One Element
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Wed, 21 Nov 2007 02:40:48 -0500 (EST)
  • References: <200711200846.DAA07103@smc.vnet.net>

On Nov 20, 2007, at 3:46 AM, 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.

x[[1]] is 2 and x[[2]] is 7.  x[[{1}]] is {2} and x[[{2}]] is {7}.

Regards,

Ssezi


  • Prev by Date: Re: Extra spacing in GraphicsGrid
  • Next by Date: Re: Scalars Instead of Lists with One Element
  • Previous by thread: Scalars Instead of Lists with One Element
  • Next by thread: Re: Scalars Instead of Lists with One Element