(************** Content-type: application/mathematica **************

                    Mathematica-Compatible Notebook

This notebook can be used with any Mathematica-compatible
application, such as Mathematica, MathReader or Publicon. The data
for the notebook starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do
one of the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the
  application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing
the word CacheID, otherwise Mathematica-compatible applications may
try to use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info@wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
*******************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      4066,        154]*)
(*NotebookOutlinePosition[      4712,        176]*)
(*  CellTagsIndexPosition[      4668,        172]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[BoxData[{
    \(\(A = 
        Partition[{2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 5, 0, 0, 2}, 
          4];\)\), "\n", 
    \(\(E4 = IdentityMatrix[4];\)\)}], "Input"],

Cell[CellGroupData[{

Cell[BoxData[
    \(e = Eigenvalues[A]\)], "Input"],

Cell[BoxData[
    \({2, 2, 2, 2}\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(A1 = A - e[\([1]\)] E4\)], "Input"],

Cell[BoxData[
    \({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {5, 0, 0, 0}}\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(Do[Print[Minors[A1, j]], {j, 1, 4}]\)], "Input"],

Cell[BoxData[
    \({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {5, 0, 0, 0}}\)], "Print"],

Cell[BoxData[
    \({{0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 
        0, 0, 0}, {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}\)], "Print"],

Cell[BoxData[
    \({{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}}\)], "Print"],

Cell[BoxData[
    \({{0}}\)], "Print"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(p1 = NullSpace[A1]\)], "Input"],

Cell[BoxData[
    \({{0, 0, 0, 1}, {0, 0, 1, 0}, {0, 1, 0, 0}}\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(p2 = LinearSolve[A1, p1[\([1]\)]]\)], "Input"],

Cell[BoxData[
    \({1\/5, 0, 0, 0}\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(P = Transpose[{p1[\([1]\)], p2, p1[\([2]\)], p1[\([3]\)]}]\)], "Input"],

Cell[BoxData[
    \({{0, 1\/5, 0, 0}, {0, 0, 0, 1}, {0, 0, 1, 0}, {1, 0, 0, 0}}\)], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(MatrixForm[P]\)], "Input"],

Cell[BoxData[
    TagBox[
      RowBox[{"(", "\[NoBreak]", GridBox[{
            {"0", \(1\/5\), "0", "0"},
            {"0", "0", "0", "1"},
            {"0", "0", "1", "0"},
            {"1", "0", "0", "0"}
            }], "\[NoBreak]", ")"}],
      Function[ BoxForm`e$, 
        MatrixForm[ BoxForm`e$]]]], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
    \(MatrixForm[Inverse[P] . A . P]\)], "Input"],

Cell[BoxData[
    TagBox[
      RowBox[{"(", "\[NoBreak]", GridBox[{
            {"2", "1", "0", "0"},
            {"0", "2", "0", "0"},
            {"0", "0", "2", "0"},
            {"0", "0", "0", "2"}
            }], "\[NoBreak]", ")"}],
      Function[ BoxForm`e$, 
        MatrixForm[ BoxForm`e$]]]], "Output"]
}, Open  ]]
},
FrontEndVersion->"4.1 for Microsoft Windows",
ScreenRectangle->{{0, 1280}, {0, 951}},
WindowSize->{496, 740},
WindowMargins->{{Automatic, 220}, {Automatic, 38}}
]

(*******************************************************************
Cached data follows.  If you edit this Notebook file directly, not
using Mathematica, you must remove the line containing CacheID at
the top of  the file.  The cache data will then be recreated when
you save this file from within Mathematica.
*******************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1705, 50, 170, 4, 70, "Input"],

Cell[CellGroupData[{
Cell[1900, 58, 51, 1, 30, "Input"],
Cell[1954, 61, 46, 1, 29, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2037, 67, 55, 1, 30, "Input"],
Cell[2095, 70, 90, 1, 29, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2222, 76, 68, 1, 30, "Input"],
Cell[2293, 79, 89, 1, 25, "Print"],
Cell[2385, 82, 162, 2, 44, "Print"],
Cell[2550, 86, 89, 1, 25, "Print"],
Cell[2642, 89, 38, 1, 25, "Print"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2717, 95, 51, 1, 30, "Input"],
Cell[2771, 98, 76, 1, 29, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[2884, 104, 66, 1, 30, "Input"],
Cell[2953, 107, 49, 1, 42, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3039, 113, 91, 1, 30, "Input"],
Cell[3133, 116, 93, 1, 42, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3263, 122, 46, 1, 30, "Input"],
Cell[3312, 125, 320, 9, 95, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[3669, 139, 63, 1, 30, "Input"],
Cell[3735, 142, 315, 9, 87, "Output"]
}, Open  ]]
}
]
*)



(*******************************************************************
End of Mathematica Notebook file.
*******************************************************************)

