MathGroup Archive 1998

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

Search the Archive

Re: A Bug / Feature



> If you do the following:
>
> In[1]:=
> m1=MatrixForm[{{1,2},{3,4}}]
> Out[1]//MatrixForm=
> (* output deleted *)
>
> Then you can do;
> ( In[2]:=  Inverse[%1] )
> because (%1) has the head List.
> But you can't do;
> ( In[2]:= Inverse[m1] )
> because (m1) has the head MatrixForm.
>
> Shouldn't they both have the same head? Makes no sense to me.
>
> Ted Ersek

The global variable $OutputForms gives a list of forms that are removed
in this way before assigning to Out[n].

In[1]:= ??$OutputForms
$OutputForms is a list of the formatting functions that get stripped off
when
   wrapped around the output.

Attributes[$OutputForms] = {Protected}

$OutputForms = {InputForm, OutputForm, TextForm, CForm, Short, Shallow,
   MatrixForm, TableForm, TreeForm, FullForm, NumberForm,
EngineeringForm,
   ScientificForm, PaddedForm, AccountingForm, BaseForm, DisplayForm,
   StyleForm, FortranForm, TeXForm, StandardForm, TraditionalForm}

Dave Withoff
Wolfram Research



  • Prev by Date: Re: Finding the Path to the Active Notebook
  • Next by Date: Re: Newbe: Wave equation
  • Prev by thread: A Bug / Feature
  • Next by thread: Re: A Bug / Feature