Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: how to convert output file to compatible format

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91812] Re: how to convert output file to compatible format
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Tue, 9 Sep 2008 06:54:50 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <ga2pp2$p86$1@smc.vnet.net>

t-minus wrote:

> I have submitted a mathematica job to unix system to run
> where I use this command
> 
> bsub -q linux64 math < test7.m> out4
> 
> test7.m is the my input file, out4 is the output filename.
> 
> But The result generated though is what I want. But the format is different from what I typed ordinary. 
> 
> For examples,
> 
>      2           2
>>      Sqrt[\[Gamma]  - \[Omega] ]                     
> 
> where this line happens to be in my result.
> which is basically 
> 
> Sqrt[\[Gamma]^2 - \[Omega]^2] 
> 
> 
> 
> originally. Notice that especiall  ^2 of my superscript is off to the previous line from the term \gamma in the output file
> 
> If you all face this kind of problem can share with me? What I tried to do is basically sent my mathematica job to my school super computer to run. But the output is not in the user friendly format

Assuming I have correctly understood what the problem is, adding the line

     $PrePrint = InputForm[#] &;

at the beginning of your input files (test7.m in your example) should do 
what you are looking for.

Regards,
-- Jean-Marc




  • Prev by Date: Re: Points on a ContourPlot
  • Next by Date: Re: How can I do a "grep -v" equivalent in Import[]?
  • Previous by thread: Re: how to convert output file to compatible format
  • Next by thread: Re: how to convert output file to compatible format