MathGroup Archive 1997

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

Search the Archive

Re: Short[]


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