Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Tuning & Debugging > Memory Measurement & Optimization > Short >
Mathematica > Systems Interfaces & Deployment > Mathematica Sessions > Mathematica Session Information > Memory Measurement & Optimization > Short >

Short

Short[expr]
prints as a short form of expr, less than about one line long.
Short
prints as a form of expr about n lines long.
  • Short[expr] gives a "skeleton form" of expr, with omitted sequences of k elements indicated by k.
  • Omitted sequences of elements are printed as Skeleton objects.
  • Short prints long strings in skeleton form.
  • The number of lines specified need not be an integer.
  • Short acts as a "wrapper", which affects printing, but not evaluation.
  • Trying to feed k as obtained from Short back as input to Mathematica in StandardForm will generate an error.
  • Short is used to limit the length of output in standard Mathematica warning and other messages.
Shorten the display of a large polynomial to about one line:
Allow about three lines:
Shorten the display of a large polynomial to about one line:
In[1]:=
Click for copyable input
Out[1]//Short=
 
Allow about three lines:
In[1]:=
Click for copyable input
Out[1]//Short=
Shortened outputs contain Skeleton objects:
Shallow displays with long expressions shortened from the end:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF