MathGroup Archive 1997

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

Search the Archive

Re: Short[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7046] Re: [mg6978] Short[]
  • From: Allan Hayes <hay at haystack.demon.co.uk>
  • Date: Sat, 3 May 1997 22:04:40 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

mabi at solidmr.kun.nl (Marlies Brinksma)
[mg6978] Short[]

>The build-in function Short[] shortens an expression. Does anyone  
>know whether there is a way to get the long expression back?

Marlies,
sf = Short[x Range[20]]
{x,2 x,3 x,4 x,5 x,<<10>>,16 x,17 x,18 x,19 x,20 x}

%
{x,2 x,3 x,4 x,5 x,6 x,7 x,8 x,9 x,10 x,11 x,12 x,13 x,14 x,15 x,16  
x,17 x,18 x,19 x,20 x}

sf[[1]]  (*sf carries the wrapper Short, % does not*)
{x,2 x,3 x,4 x,5 x,6 x,7 x,8 x,9 x,10 x,11 x,12 x,13 x,14 x,15 x,16  
x,17 x,18 x,19 x,20 x}

Allan Hayes
hay at haystack.demon.co.uk
http://haystack.demon.co.uk


  • Prev by Date: Mma 3.0 review URL
  • Next by Date: Re: Extracting functions from Solve
  • Previous by thread: Short[]
  • Next by thread: How to use excel for compiling