MathGroup Archive 1998

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

Search the Archive

Redirecting output to file



Hello,

	I am doing some computations which I want to be written to a file.  The
usual (>> or >>) is not sufficient as Mathematica waits for the entire
computation to be over before writing to the file. Is there any way I
can  make Mathematica write to a file dynamically?

The computation I attempted was the following:

<<combinatorica.m

e={{-1, -1, 0, 0, 2}, {-1, -1, 0, 2, 0}, {-1, -1, 2, 0, 0}, {-1, 0, -1,
0, 2}, 
  {-1, 0, -1, 2, 0}, {-1, 0, 0, -1, 2}, {-1, 0, 0, 2, -1}, {-1, 0, 2,
-1, 0}, 
  {-1, 0, 2, 0, -1}, {-1, 2, -1, 0, 0}, {-1, 2, 0, -1, 0}, {-1, 2, 0, 0,
-1}, 
  {0, -1, -1, 0, 2}, {0, -1, -1, 2, 0}, {0, -1, 0, -1, 2}, {0, -1, 0, 2,
-1}, 
  {0, -1, 2, -1, 0}, {0, -1, 2, 0, -1}, {0, 0, -1, -1, 2}, {0, 0, -1, 2,
-1}, 
  {0, 0, 2, -1, -1}, {0, 2, -1, -1, 0}, {0, 2, -1, 0, -1}, {0, 2, 0, -1,
-1}, 
  {2, -1, -1, 0, 0}, {2, -1, 0, -1, 0}, {2, -1, 0, 0, -1}, {2, 0, -1,
-1, 0}, 
  {2, 0, -1, 0, -1}, {2, 0, 0, -1, -1}, {-1, -1, 0, 1, 1}, {-1, -1, 1,
0, 1}, {-1, -1, 1, 1, 0}, {-1, 0, -1, 1, 1}, 
  {-1, 0, 1, -1, 1}, {-1, 0, 1, 1, -1}, {-1, 1, -1, 0, 1}, {-1, 1, -1,
1, 0}, 
  {-1, 1, 0, -1, 1}, {-1, 1, 0, 1, -1}, {-1, 1, 1, -1, 0}, {-1, 1, 1, 0,
-1}, 
  {0, -1, -1, 1, 1}, {0, -1, 1, -1, 1}, {0, -1, 1, 1, -1}, {0, 1, -1,
-1, 1}, 
  {0, 1, -1, 1, -1}, {0, 1, 1, -1, -1}, {1, -1, -1, 0, 1}, {1, -1, -1,
1, 0}, 
  {1, -1, 0, -1, 1}, {1, -1, 0, 1, -1}, {1, -1, 1, -1, 0}, {1, -1, 1, 0,
-1}, 
  {1, 0, -1, -1, 1}, {1, 0, -1, 1, -1}, {1, 0, 1, -1, -1}, {1, 1, -1,
-1, 0}, 
  {1, 1, -1, 0, -1}, {1, 1, 0, -1, -1}, {-1, 0, 0, 0, 1}, {-1, 0, 0, 1,
0}, {-1, 0, 1, 0, 0}, {-1, 1, 0, 0, 0}, 
  {0, -1, 0, 0, 1}, {0, -1, 0, 1, 0}, {0, -1, 1, 0, 0}, {0, 0, -1, 0,
1}, 
  {0, 0, -1, 1, 0}, {0, 0, 0, -1, 1}, {0, 0, 0, 1, -1}, {0, 0, 1, -1,
0}, 
  {0, 0, 1, 0, -1}, {0, 1, -1, 0, 0}, {0, 1, 0, -1, 0}, {0, 1, 0, 0,
-1}, 
  {1, -1, 0, 0, 0}, {1, 0, -1, 0, 0}, {1, 0, 0, -1, 0}, {1, 0, 0, 0,
-1}}; KSubsets[e,4] >> result.out

	I am running Mathematica 3.0 for Digital Alpha workstation
(Alpha@433MHz,  with 128MB RAM and oodles of hard disk space. But
Mathematica exits on the  above saying "Out of Memory".

	Thanks in advance,

	V. Nandagopal
	School of Mathematics
	Tata Institute of Fundamental Research
	Colaba, Bombay 400 005, India
	e-mail: nandgopa@math.tifr.res.in




  • Prev by Date: RE: Matrix Multiplication
  • Next by Date: FW: Tan,Cot,Csc,etc
  • Prev by thread: mathematica conference talk
  • Next by thread: Re: Redirecting output to file