Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1992
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1992

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

Search the Archive

OutputForm

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: OutputForm
  • From: Cetin Cetinkaya <cetin at acm0.me.uiuc.edu>
  • Date: Wed, 4 Mar 1992 10:12:47 -0600

Dave Withoff of wri writes:

>Try the TableSpacing option:

>In[6]:= pairs = Table[Random[], {5}, {2}];

>In[7]:= OutputForm[TableForm[pairs, TableSpacing -> {0, 5}]] >> "file"

>In[8]:= !!file
>0.490603     0.679651
>0.915618     0.278768
>0.466052     0.441966
>0.253975     0.634225
>0.263516     0.785352

>Alternatively, Write, WriteString, and other formatting functions can
>be used to accomplish the same thing.

>Dave Withoff
>withoff at wri.com


But I have got the following:

In[4]:= pairs = Table[Random[], {5}, {2}];
0.0166667 Second  1308.612 KByte

In[5]:=   OutputForm[TableForm[pairs, TableSpacing -> {0, 5}]] >> "file"     



TableForm::posint: 
   Positive machine-size integer expected at position 2 in 
    TableForm[{{0.0397849, 0.797271}, {0.198567, 0.00697207}, 
      {0.183345, 0.557411}, {0.623224, 0.370224}, {0.10402, 0.939877}}, 
     TableSpacing -> {0, 5}].

General::stop: Further output of TableForm::posint
     will be suppressed during this calculation.
TableForm::posint: 
   Positive machine-size integer expected at position 2 in 
    TableForm[{{0.0397849, 0.797271}, {0.198567, 0.00697207}, 
      {0.183345, 0.557411}, {0.623224, 0.370224}, {0.10402, 0.939877}}, 
     TableSpacing -> {0, 5}].
TableForm::posint: 
   Positive machine-size integer expected at position 2 in 
    TableForm[{{0.0397849, 0.797271}, {0.198567, 0.00697207}, 
      {0.183345, 0.557411}, {0.623224, 0.370224}, {0.10402, 0.939877}}, 
     TableSpacing -> {0, 5}].
0.0666667 Second  1309.176 KByte

In[6]:= !!"fiel"

General::noopen: Cannot open fiel.

In[6]:= !!"file"
TableForm[{{0.0397849, 0.797271}, {0.198567, 0.00697207}, 
 
>    {0.183345, 0.557411}, {0.623224, 0.370224}, {0.10402, 0.939877}}, 
 
>   TableSpacing -> {0, 5}]

In[6]:= !!file
TableForm[{{0.0397849, 0.797271}, {0.198567, 0.00697207}, 
 
>    {0.183345, 0.557411}, {0.623224, 0.370224}, {0.10402, 0.939877}}, 
 
>   TableSpacing -> {0, 5}] 




Is this because I still run 1.2 Release?    


ccetinkaya





  • Prev by Date: Printing out mathematica graphics
  • Next by Date: Re: Integrate 2 March 1992
  • Previous by thread: Re: Printing out mathematica graphics
  • Next by thread: Re: Integrate 2 March 1992