explain[mat_] := Module[{v = {StyleForm["d", FontSlant -> Italic, FontFamily -> "Times"], StyleForm["m", FontSlant -> Italic, FontFamily -> "Times"]}}, {problemNameOf[mat], "=", MatrixForm[mat], " ", {v} // TraditionalForm, " -> ", {v . mat} // TraditionalForm} ] ;
explainList[matlist_] := StylePrint[GridBox[Map[(explain[#]) &, matlist], ColumnAlignments -> Left] // DisplayForm, Background -> RGBColor[1, 1, 0.6]] " hspace="60" width="633" height="319" align="absmiddle" />
In[7]:=
In[15]:=
In[16]:=
= | ||||||
= | ||||||
= | ||||||
= | ||||||
= | ||||||
= | ||||||
= |
In[17]:=
In[22]:=
= | ||||||
= | ||||||
= | ||||||
= | ||||||
= |
The function howto finds the shortest products (with no more terms than maxTerms) that get to the goal. You can change limit to make it search further. Note that maxTerms refers to matrices, rather than button presses (e.g., mrcmrc is the product of two button presses).
In[23]:=
In[24]:=
In[25]:=
Converted by Mathematica (May 2, 2003)