 |
TableForm
TableForm[
list
] prints with the elements of list arranged in an array of rectangular cells.
The height of each row and the width of each column are determined by the maximum size of an element in the row or column. TableForm prints a single-level list in a column. It prints a two-level list as a two-dimensional table. More deeply nested lists are by default printed with successive dimensions alternating between rows and columns. Arrays in which all sublists at a particular level are not of the same length display as ragged tables. The following options can be given: TableForm acts as a "wrapper", which affects printing, but not evaluation. See the Mathematica book: Section 1.8.2, Section 2.8.8. See also: ColumnForm, MatrixForm, GridBox, GraphicsArray.
Further Examples
TableForm displays a list of lists as a table.
In[1]:= 
Out[1]//TableForm= 
This centers the column.
In[2]:= 
Out[2]//TableForm= 
This displays to a depth of .
In[3]:= 
Out[3]//TableForm= 
This is the default setting for the option TableDirections.
In[4]:= 
Out[4]//TableForm= 
This reverses the direction.
In[5]:= 
Out[5]//TableForm= 
This gives all columns.
In[6]:= 
Out[6]//TableForm= 
This puts integer labels in a 2 x 2 x 2 array.
In[7]:= 
Out[7]//TableForm= 
This gives a table where rows are labeled by integers and columns by a list of strings.
In[8]:= 
Out[8]//TableForm= 
This leaves 6 spaces between the entries in each row and one space between successive rows.
In[9]:= 
Out[9]//TableForm= 
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | | | |
 | |
|