Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: default display of reals & last command behavior in terminal

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77679] Re: default display of reals & last command behavior in terminal
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Fri, 15 Jun 2007 04:21:56 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f4r541$bck$1@smc.vnet.net>

Juneappal wrote:
> 2 Questions:
> 
> 1.
> I know I can use
> $Post = (# /. x_ /; x =E2=89=A4 0.01 \[Or] x > 1000 :> EngineeringForm[x,5])
> &;
> To make Mathematica display Reals in Engineer's notation.  Is there any
> way to make this the default behavior so I don't have cut and paste
> every time I start up a kernel?

Put the command in init.m

http://reference.wolfram.com/mathematica/ref/file/init.m.html

Do not use $Post, use $PrePrint instead. $Post affects the result of the 
calcuation (which is stored in Out[n]), while $PrePrint only affects the 
printed expression.

> 2.
> When I use Mathematica via the terminal in MacOSX, I find myself wanting
> to be able to use the up arrow to get the last command back on the
> screen (as in Bash and other programs).  Instead I get nonsense control
> characters.  Is there a particular terminal emulation I need to FORCE?
> 
> Thanks,
> 
> Adam
> 
> 


  • Prev by Date: Re: Help with formatting output
  • Next by Date: Re: Trouble with TraditionalForm in Mathematica 6.0
  • Previous by thread: Re: default display of reals & last command behavior in terminal
  • Next by thread: Re: default display of reals & last command behavior in terminal