Re: A Bug / Feature
- To: mathgroup@smc.vnet.net
- Subject: [mg12599] Re: [mg12521] A Bug / Feature
- From: David Withoff <withoff@wolfram.com>
- Date: Mon, 25 May 1998 14:25:10 -0400
> 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