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

MathGroup Archive 2006

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

Search the Archive

Re: $Post

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67448] Re: [mg67439] $Post
  • From: pratikd at wolfram.com
  • Date: Sun, 25 Jun 2006 03:19:10 -0400 (EDT)
  • References: <200606240928.FAA07817@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> $Post = N displays all numeric output in digit form.  Thus, sqrt(2)
> appears as 1.4142.
>
> Likewise, $Post = If[MatrixQ@#, MatrixForm@#] & causes all matrices to
> appear as matrices.
>
> Unfortunately, I don't see how to establish both at once.  How would I do
> this?
>
> Thanx.
>
> Bruce
>

Hello Bruce,

Maybe using $PrePrint

In[7]:=
$PrePrint:=If[MatrixQ[#],N[MatrixForm[#]],#]&
{{a,1,3,4},{2,3,4,5}}
$PrePrint=.

Out[8]=
MatrixForm[{{a, 1., 3., 4.}, {2., 3., 4., 5.}}]

Hope this helps

Pratik


  • References:
    • $Post
      • From: Bruce Colletti <vze269bv@verizon.net>
  • Prev by Date: How can I graph 3D vectors in Mathematica?
  • Next by Date: Re: $Post
  • Previous by thread: $Post
  • Next by thread: RE:$Post