Re: how to convert output file to compatible format

*To*: mathgroup at smc.vnet.net*Subject*: [mg91816] Re: how to convert output file to compatible format*From*: Albert Retey <awnl at gmx-topmail.de>*Date*: Tue, 9 Sep 2008 06:55:35 -0400 (EDT)*References*: <ga2pp2$p86$1@smc.vnet.net>

Hi, > > 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] I think you want the output to be in InputForm, so you can either do InputForm[Sqrt[gamma^2-omega^2]] or, if you want everything to be output in InputForm: $Pre=InputForm once at the beginning of test7.m. Alternatively you can put that into the kernel initialization file at: ~/.Mathematica/Kernel/init.m then it will be used for all your mathematica session, although you might not like that if you use the frontend... albert