(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' 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[ 3589, 120]*) (*NotebookOutlinePosition[ 4447, 149]*) (* CellTagsIndexPosition[ 4403, 145]*) (*WindowFrame->Normal*) Notebook[{ Cell["\<\ (*************************************************** Hueckel: Calculates Hueckel orbital energies (ex- pressed in terms of the energy-related variable x) and the corresponding orbital matrix C. Enter the Fock matrix F simplified and transformed as shown in Exercise 4-21 beginning on the third line of code. Date: 9/27/96 and 2/9/97. *****************************************************) (*Turn off annoying error messages.*) Off[General::spell, General::spell1] (*Remove all entities created earlier.*) ClearAll[\"Global`*\"] (*Enter the Hueckel version of the Fock matrix here. Data given are for the BUTADIENE Pi system.*) Forbital = {{0, -1., 0, 0}, \t\t {-1., 0, -1., 0}, \t\t\t{0, -1., 0, -1.}, \t\t\t{0, 0, -1., 0}}; (*Calculate the dimension n of Forbital.*) n = Length[Forbital]; (*Calculate the energy eigenvalues and eigenvectors from the Hueckel Fock matrix. Separate the eigen- values in Eorbital and the eigenvectors in Corbital. The trick for sorting the eigenvalues and eigen- vectors is suggested by J.M. Feagin, \"Quantum Mech- anics Methods with Mathematica,\" Springer-Verlag, 1994, p. 112.*) {Eorbital, Corbital} = \t\tEigensystem[Forbital] // Chop // Transpose // \t\t\t\t\t\t\t\t Sort // Transpose; (*Transpose Corbital so the orbital coefficients are listed in columns rather than rows, as is customary.*) Corbital = Transpose[Corbital]; (*Print the orbital energies Ei.*) Print[\" \"] Print[\"Orbital energies (eigenvalues of x):\"]; Print[TableForm[N[Eorbital, 3], \t\tTableHeadings -> {Range[n], {\" x\"}}]]; (*Print the orbital matrix C.*) Print[\" \"] Print[\"Orbital matrix:\"] Print[TableForm[N[Corbital, 3], \t\tTableSpacing -> {1, 2}, \t\tTableHeadings -> {None, Range[n]}, \t\tTableAlignments -> Center]]; \t\t\t\t \ \>", "Input", PageWidth->Infinity] }, FrontEndVersion->"5.2 for Microsoft Windows", ScreenRectangle->{{0, 1280}, {0, 949}}, WindowToolbars->{}, CellGrouping->Manual, WindowSize->{645, 782}, WindowMargins->{{10, Automatic}, {Automatic, 15}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False} ] (******************************************************************* 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[1754, 51, 1831, 67, 1182, "Input"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)