MathGroup Archive 1999

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

Search the Archive

Re: Automatic Display in MatrixForm

  • To: mathgroup at
  • Subject: [mg19503] Re: Automatic Display in MatrixForm
  • From: colin at (Colin Rose)
  • Date: Sat, 28 Aug 1999 15:53:22 -0400
  • Organization: Theoretical Research Institute
  • References: <7p00rp$> <7p30am$> <7ps4js$>
  • Sender: owner-wri-mathgroup at

Dave Withoff apparently suggested:

 StandardForm] :=
  RowBox[{"(", GridBox[Map[Function[t,MakeBoxes[t,StandardForm],HoldAll],

Two interesting cases are:

(1)    Output from Solve will now get displayed as a 'Matrix',
       which I think is highly undesirable. For instance,
       if Solve returns an answer such as

            {{x -> 3}}

       then it will now be presented as

             (x -> 3)

       which can cause a lot of confusion. I would suggest 
       eliminating this possibilility by adding the exclusion

               FreeQ[t, Rule] === True

        to yield 
        Function[t,  MatrixQ[Unevaluated[t]] && (t =!= {{}} && 
                             FreeQ[t, Rule] === True), HoldAll]

(2).  Let:

         lis = { {}, {}, {}, {} ... }

      Some functions might generate output like this.
      This generates a BEEP when Mathematica tries to format
      it as a "Matrix". I can't think of a nice general way to 
      exclude such cases.



Colin Rose 
tr(I)    -  Theoretical Research Institute
colin at

  • Prev by Date: Manipulation of equations and inequalities in "high-school style"
  • Next by Date: Re: Re: incompatibilities between releases of Mathematica (was: Mathematica Link for Excel and Excel 2000) Organization: Princeton University - CIT/IS/ASIG
  • Previous by thread: RE: Re: Automatic Display in MatrixForm
  • Next by thread: RE: Automatic Display in MatrixForm