(*******************************************************************
This file was generated automatically by the Mathematica front end.
It contains Initialization cells from a Notebook file, which
typically will have the same name as this file except ending in
".nb" instead of ".m".

This file is intended to be loaded into the Mathematica kernel using
the package loading commands Get or Needs.  Doing so is equivalent
to using the Evaluate Initialization Cells menu command in the front
end.

DO NOT EDIT THIS FILE.  This entire file is regenerated
automatically each time the parent Notebook file is saved in the
Mathematica front end.  Any changes you make to this file will be
overwritten.
***********************************************************************)



Needs["Graphics`"]
Needs["Calculus`"]
Needs["DiscreteMath`"]

\!\(\*
  RowBox[{\(LabelLine[InLine_Line, \ InLabel_]\), " ", ":=", " ", 
    RowBox[{"Module", "[", "\[IndentingNewLine]", 
      RowBox[{\({Data}\), ",", "\[IndentingNewLine]", 
        RowBox[{\(Data\  = \ InLine\[LeftDoubleBracket]1\[RightDoubleBracket]\), ";", "\[IndentingNewLine]", 
          RowBox[{"Graphics", "[", " ", 
            RowBox[{"{", "\[IndentingNewLine]", 
              RowBox[{"InLine", ",", " ", "\[IndentingNewLine]", 
                RowBox[{"Text", "[", "\[IndentingNewLine]", 
                  RowBox[{
                    RowBox[{"StringForm", "[", 
                      RowBox[{"\"\<\!\(
\*FrameBox[\(\(\\\ \)\(``\)\(\\\ \)\),
BoxMargins->{{0.2, 0.2}, {0.4, 0.4}}]\)\>\"", ",", " ", "InLabel"}], "]"}], ",", " ", "\[IndentingNewLine]", \(Data\[LeftDoubleBracket]\ Floor[Length[Data]/2]\[RightDoubleBracket]\), ",", "\[IndentingNewLine]", \(Background \[Rule] White\)}], "]"}]}], "\[IndentingNewLine]", "}"}], "\[IndentingNewLine]", "]"}]}]}], "\[IndentingNewLine]", "]"}]}]\)

LabeledContourPlot[
    f_,
    {x_,xMin_,xMax_},
    {y_,yMin_,yMax_},
    ContourValues_List,
    options___
    ]:= Module[
    {i,TempLines},
    Show[
      Table[
        TempLines =Cases[
            Graphics[
              ContourPlot[f,{x,xMin,xMax},{y,yMin,yMax},
                
                Contours\[Rule]{ContourValues\[LeftDoubleBracket]
                      i\[RightDoubleBracket]},
                DisplayFunction\[Rule]Identity,
                ContourShading\[Rule]False]],
            _Line, \[Infinity]];
        Map[
          LabelLine[#,
              ContourValues\[LeftDoubleBracket]i\[RightDoubleBracket]]&,
          TempLines],
        {i, Length[ContourValues]}],
      DisplayFunction\[Rule]$DisplayFunction,
      options
      ]
    ]

















































