(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 4.0,
MathReader 4.0, or any compatible application. 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[      8551,        275]*)
(*NotebookOutlinePosition[     11693,        375]*)
(*  CellTagsIndexPosition[     11414,        360]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[TextData[{
  "NumberTheory",
  StyleBox["`", "MB"],
  "SiegelTheta",
  StyleBox["`", "MB"]
}], "Subsection",
  CellTags->{"S5.74.1", "1.1"}],

Cell[TextData[{
  "The Siegel theta function ",
  Cell[BoxData[
      FormBox[
        RowBox[{"\[CapitalTheta]", 
          RowBox[{"(", 
            RowBox[{
              StyleBox["\<\"Z\"\>",
                "TB"], ",", 
              StyleBox["\<\"s\"\>",
                "TB"]}], ")"}]}], TraditionalForm]], "InlineFormula"],
  " is defined as "
}], "Text",
  CellTags->{"S5.74.1", "1.2"}],

Cell[BoxData[
    FormBox[
      RowBox[{"\[CapitalTheta]", 
        RowBox[{"(", 
          RowBox[{
            StyleBox["\<\"Z\"\>",
              "TB"], ",", 
            StyleBox["\<\"s\"\>",
              "TB"]}], ")"}], "=", 
        UnderscriptBox["\[Sum]", 
          StyleBox["\<\"t\"\>",
            "TB"],
          LimitsPositioning->False], 
        SuperscriptBox["e", 
          RowBox[{"\[Pi]", "i", 
            SuperscriptBox[
              StyleBox["\<\"t\"\>",
                "TB"], "\[Prime]"], 
            StyleBox["\<\"Zt\"\>",
              "TB"], "+", "2", "\[Pi]", "i", 
            SuperscriptBox[
              StyleBox["\<\"t\"\>",
                "TB"], "\[Prime]"], 
            StyleBox["\<\"s\"\>",
              "TB"]}]]}], TraditionalForm]], "DisplayFormula",
  CellTags->{"S5.74.1", "1.3"}],

Cell[TextData[{
  "where ",
  Cell[BoxData[
      FormBox[
        StyleBox["\<\"Z\"\>",
          "TB"], TraditionalForm]], "InlineFormula"],
  " is a ",
  Cell[BoxData[
      \(TraditionalForm\`p\[Cross]p\)], "InlineFormula"],
  " symmetric complex matrix ",
  Cell[BoxData[
      FormBox[
        RowBox[{
          StyleBox["\<\"Z\"\>",
            "TB"], "=", 
          StyleBox["\<\"X\"\>",
            "TB"], "+", "i", 
          StyleBox["\<\"Y\"\>",
            "TB"]}], TraditionalForm]], "InlineFormula"],
  " with imaginary part ",
  Cell[BoxData[
      FormBox[
        StyleBox["\<\"Y\"\>",
          "TB"], TraditionalForm]], "InlineFormula"],
  " positive definite, ",
  Cell[BoxData[
      FormBox[
        StyleBox["\<\"s\"\>",
          "TB"], TraditionalForm]], "InlineFormula"],
  " is a complex vector of dimension ",
  Cell[BoxData[
      \(TraditionalForm\`p\)], "InlineFormula"],
  ", and ",
  Cell[BoxData[
      FormBox[
        StyleBox["\<\"t\"\>",
          "TB"], TraditionalForm]], "InlineFormula"],
  " is an integer vector of dimension ",
  Cell[BoxData[
      \(TraditionalForm\`p\)], "InlineFormula"],
  " that ranges over the entire ",
  Cell[BoxData[
      \(TraditionalForm\`p\)], "InlineFormula"],
  "\[Hyphen]dimensional lattice of integers. This function was initially \
investigated by Riemann and Weierstrass and further studies were done by \
Frobenius and Poincar\[EAcute]. These investigations represent some of the \
most significant accomplishments of nineteenth century mathematics. "
}], "Text",
  CellTags->{"S5.74.1", "1.4"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"SiegelTheta[\\\\\\\"\\\", \
\\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"z\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \\!\
\\(\\*StyleBox[\\\"\\\\\\\"s\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \
\"\>", 
                  RowBox[{"\<\"Siegel theta function \"\>", 
                    StyleBox[
                      RowBox[{"\[CapitalTheta]", 
                        RowBox[{"(", 
                          RowBox[{
                            StyleBox["\<\"Z\"\>",
                              "TB"], ",", 
                            StyleBox["\<\"s\"\>",
                              "TB"]}], ")"}]}],
                      "InlineFormula"], "\<\" \"\>"}]}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"S5.74.1", "1.5"}],

Cell["The Siegel theta function. ", "Caption",
  CellTags->"S5.74.1"],

Cell["This loads the package. ", "MathCaption",
  CellTags->{"S5.74.1", "1.6"}],

Cell["<< NumberTheory`SiegelTheta`", "Input",
  CellLabel->"In[1]:= ",
  CellTags->"S5.74.1"],

Cell[TextData[{
  "This evaluates ",
  Cell[BoxData[
      \(TraditionalForm\`\[CapitalTheta]\)], "InlineFormula"],
  " for particular arguments in 2\[Hyphen]space. "
}], "MathCaption",
  CellTags->{"S5.74.1", "1.7"}],

Cell[CellGroupData[{

Cell["SiegelTheta[{{1+I,2+I}, {2+I,-1+4I}}, {1.2, 2.3+.3I}]", "Input",
  CellLabel->"In[2]:= ",
  CellTags->"S5.74.1"],

Cell[BoxData[
    \(\(\(0.9737148349537305`\)\(\[InvisibleSpace]\)\) - 
      0.00029704806583312514`\ \[ImaginaryI]\)], "Output",
  CellLabel->"Out[2]= ",
  CellTags->"S5.74.1"]
}, Open  ]],

Cell[TextData[{
  "This is a slow, brute force way to get the same answer. (The tails beyond \
",
  Cell[BoxData[
      \(TraditionalForm\`-\)], "InlineFormula"],
  "10 and 10 die off quickly.) "
}], "MathCaption",
  CellTags->{"S5.74.1", "1.8"}],

Cell[CellGroupData[{

Cell["\<\
Sum[E^(Pi I {t1,t2}.{{1+I,2+I}, {2+I,-1+4I}}.{t1,t2} +
               2 Pi I {t1,t2} . {1.2, 2.3+.3I}),
          {t1, -10, 10}, {t2, -10, 10}]\
\>", "Input",
  CellLabel->"In[3]:= ",
  CellTags->"S5.74.1"],

Cell[BoxData[
    \(\(\(0.9737148349537305`\)\(\[InvisibleSpace]\)\) - 
      0.00029704806583312867`\ \[ImaginaryI]\)], "Output",
  CellLabel->"Out[3]= ",
  CellTags->"S5.74.1"]
}, Open  ]],

Cell[TextData[{
  "If the imaginary part of ",
  Cell[BoxData[
      FormBox[
        StyleBox["\<\"Z\"\>",
          "TB"], TraditionalForm]], "InlineFormula"],
  " is not positive definite, ",
  Cell[BoxData[
      FormBox[
        RowBox[{"\[CapitalTheta]", 
          RowBox[{"(", 
            RowBox[{
              StyleBox["\<\"Z\"\>",
                "TB"], ",", 
              StyleBox["\<\"s\"\>",
                "TB"]}], ")"}]}], TraditionalForm]], "InlineFormula"],
  " is not defined. "
}], "MathCaption",
  CellTags->{"S5.74.1", "1.9"}],

Cell[CellGroupData[{

Cell["SiegelTheta[{{1+I,2+I}, {2+I,-1-4I}}, {1.2, 2.3+.3I}]", "Input",
  CellLabel->"In[4]:= ",
  CellTags->"S5.74.1"],

Cell[BoxData[
    \(SiegelTheta::"npd" \(\(:\)\(\ \)\) 
      "The imaginary part of the matrix \!\({\({\(1 + \[ImaginaryI]\), \(2 + \
\[ImaginaryI]\)}\), \({\(2 + \[ImaginaryI]\), \(\(-1\) - \(4\\ \
\[ImaginaryI]\)\)}\)}\) is not positive definite."\)], "Message",
  CellTags->"S5.74.1"],

Cell[BoxData[
    \(SiegelTheta[{{1 + \[ImaginaryI], 
          2 + \[ImaginaryI]}, {2 + \[ImaginaryI], \(-1\) - 
            4\ \[ImaginaryI]}}, {1.2`, \(\(2.3`\)\(\[InvisibleSpace]\)\) + 
          0.3`\ \[ImaginaryI]}]\)], "Output",
  CellLabel->"Out[4]= ",
  CellTags->"S5.74.1"]
}, Open  ]]
},
FrontEndVersion->"4.0 for X",
ScreenRectangle->{{0, 800}, {0, 600}},
WindowSize->{520, 455},
WindowMargins->{{140, Automatic}, {Automatic, 72}},
StyleDefinitions -> "HelpBrowser.nb"
]


(***********************************************************************
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->{
  "S5.74.1"->{
    Cell[1717, 49, 145, 6, 70, "Subsection",
      CellTags->{"S5.74.1", "1.1"}],
    Cell[1865, 57, 395, 13, 70, "Text",
      CellTags->{"S5.74.1", "1.2"}],
    Cell[2263, 72, 829, 25, 70, "DisplayFormula",
      CellTags->{"S5.74.1", "1.3"}],
    Cell[3095, 99, 1579, 48, 70, "Text",
      CellTags->{"S5.74.1", "1.4"}],
    Cell[4677, 149, 1095, 25, 70, "Text",
      CellTags->{"S5.74.1", "1.5"}],
    Cell[5775, 176, 69, 1, 70, "Caption",
      CellTags->"S5.74.1"],
    Cell[5847, 179, 79, 1, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.6"}],
    Cell[5929, 182, 93, 2, 70, "Input",
      CellTags->"S5.74.1"],
    Cell[6025, 186, 217, 6, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.7"}],
    Cell[6267, 196, 118, 2, 70, "Input",
      CellTags->"S5.74.1"],
    Cell[6388, 200, 178, 4, 70, "Output",
      CellTags->"S5.74.1"],
    Cell[6581, 207, 246, 7, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.8"}],
    Cell[6852, 218, 216, 6, 70, "Input",
      CellTags->"S5.74.1"],
    Cell[7071, 226, 178, 4, 70, "Output",
      CellTags->"S5.74.1"],
    Cell[7264, 233, 551, 18, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.9"}],
    Cell[7840, 255, 118, 2, 70, "Input",
      CellTags->"S5.74.1"],
    Cell[7961, 259, 288, 5, 70, "Message",
      CellTags->"S5.74.1"],
    Cell[8252, 266, 283, 6, 70, "Output",
      CellTags->"S5.74.1"]},
  "1.1"->{
    Cell[1717, 49, 145, 6, 70, "Subsection",
      CellTags->{"S5.74.1", "1.1"}]},
  "1.2"->{
    Cell[1865, 57, 395, 13, 70, "Text",
      CellTags->{"S5.74.1", "1.2"}]},
  "1.3"->{
    Cell[2263, 72, 829, 25, 70, "DisplayFormula",
      CellTags->{"S5.74.1", "1.3"}]},
  "1.4"->{
    Cell[3095, 99, 1579, 48, 70, "Text",
      CellTags->{"S5.74.1", "1.4"}]},
  "1.5"->{
    Cell[4677, 149, 1095, 25, 70, "Text",
      CellTags->{"S5.74.1", "1.5"}]},
  "1.6"->{
    Cell[5847, 179, 79, 1, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.6"}]},
  "1.7"->{
    Cell[6025, 186, 217, 6, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.7"}]},
  "1.8"->{
    Cell[6581, 207, 246, 7, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.8"}]},
  "1.9"->{
    Cell[7264, 233, 551, 18, 70, "MathCaption",
      CellTags->{"S5.74.1", "1.9"}]}
  }
*)

(*CellTagsIndex
CellTagsIndex->{
  {"S5.74.1", 9176, 292},
  {"1.1", 10553, 329},
  {"1.2", 10647, 332},
  {"1.3", 10736, 335},
  {"1.4", 10835, 338},
  {"1.5", 10925, 341},
  {"1.6", 11016, 344},
  {"1.7", 11111, 347},
  {"1.8", 11207, 350},
  {"1.9", 11303, 353}
  }
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 145, 6, 70, "Subsection",
  CellTags->{"S5.74.1", "1.1"}],
Cell[1865, 57, 395, 13, 70, "Text",
  CellTags->{"S5.74.1", "1.2"}],
Cell[2263, 72, 829, 25, 70, "DisplayFormula",
  CellTags->{"S5.74.1", "1.3"}],
Cell[3095, 99, 1579, 48, 70, "Text",
  CellTags->{"S5.74.1", "1.4"}],
Cell[4677, 149, 1095, 25, 70, "Text",
  CellTags->{"S5.74.1", "1.5"}],
Cell[5775, 176, 69, 1, 70, "Caption",
  CellTags->"S5.74.1"],
Cell[5847, 179, 79, 1, 70, "MathCaption",
  CellTags->{"S5.74.1", "1.6"}],
Cell[5929, 182, 93, 2, 70, "Input",
  CellTags->"S5.74.1"],
Cell[6025, 186, 217, 6, 70, "MathCaption",
  CellTags->{"S5.74.1", "1.7"}],

Cell[CellGroupData[{
Cell[6267, 196, 118, 2, 70, "Input",
  CellTags->"S5.74.1"],
Cell[6388, 200, 178, 4, 70, "Output",
  CellTags->"S5.74.1"]
}, Open  ]],
Cell[6581, 207, 246, 7, 70, "MathCaption",
  CellTags->{"S5.74.1", "1.8"}],

Cell[CellGroupData[{
Cell[6852, 218, 216, 6, 70, "Input",
  CellTags->"S5.74.1"],
Cell[7071, 226, 178, 4, 70, "Output",
  CellTags->"S5.74.1"]
}, Open  ]],
Cell[7264, 233, 551, 18, 70, "MathCaption",
  CellTags->{"S5.74.1", "1.9"}],

Cell[CellGroupData[{
Cell[7840, 255, 118, 2, 70, "Input",
  CellTags->"S5.74.1"],
Cell[7961, 259, 288, 5, 70, "Message",
  CellTags->"S5.74.1"],
Cell[8252, 266, 283, 6, 70, "Output",
  CellTags->"S5.74.1"]
}, Open  ]]
}
]
*)




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

