MathGroup Archive 2008

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

Search the Archive

Re: How to always output result in InputForm from the command line


Hi,

set

$Post = InputForm

at the begin of your test.m
file.

Regards
   Jens

Peng Yu wrote:
> Hi,
> 
> By default the command line program show results not in InputForm. I
> want all the output be in InputForm. Instead of appending each line
> with "//InputForm", is there any better solution?
> 
> Thanks,
> Peng
> 
> $ math < test.m
> Mathematica 6.0 for Linux x86 (64-bit)
> Copyright 1988-2007 Wolfram Research, Inc.
> 
> In[1]:=
>           a
> Out[1]= -----
>         x + y
> 
> In[2]:=
> $ cat test.m
> a/(x+y)
> 


  • Prev by Date: Re: after install mathematica in archlinux .i can not run math or
  • Next by Date: Re: Comparison of coefficients
  • Previous by thread: Re: How to always output result in InputForm from the command line
  • Next by thread: Re: How to always output result in InputForm from the command line