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>
- $Post