Re: Re: list of Mma commands with specified properties
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg744] Re: [mg698] Re: [mg644] list of Mma commands with specified properties
- From: "Dennis M. Schneider" <dschneid at knox.edu>
- Date: Wed, 12 Apr 1995 10:29:14 -0500 (CDT)
On Mon, 10 Apr 1995, Richard Mercer wrote:
> Jack Goldberg writes:
>
>
> > Another student asked this question (actually it was me):
> > (3) Is there a way of forcing the front end to
> > produce
> > output in MatrixForm in a given Mma session
> > rather than a list of lists (of equal length)
> > as it does now?
> > This is of value when one knows in advanced that a
> > particular session will be dealing entirely with matrices.
>
> $PrePrint = If[MatrixQ[#],MatrixForm[#],#]]&
>
> makes life worth living again! Every matrix now comes out in MatrixForm
> automatically. Even some you didn't really want to!
>
> Have you ever tried to do further calculations with matrices to which you had
> applied MatrixForm? It doesn't work, because the head MatrixForm stays
> attached! A major pain in the neck, which the $PrePrint solution avoids.
>
> Richard Mercer
>
Another way to handle this is to train oneself to enter matrices you
really want to view as matrices as
(matA = {{a,b},{c,d}}) //MatrixForm
Normal computations can be carried out on matA.
Dennis Schneider