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

                    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[      7855,        282]*)
(*NotebookOutlinePosition[     10257,        360]*)
(*  CellTagsIndexPosition[     10053,        348]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[TextData[{
  "Graphics",
  StyleBox["`", "MB"],
  "ArgColors",
  StyleBox["`", "MB"]
}], "Subsection",
  CellTags->{"S5.26.1", "1.1"}],

Cell[TextData[{
  "There are several ways to specify a complex number. The simplest is to \
give its real and imaginary parts. You can also use polar coordinates and \
specify the complex number by an angle, called the ",
  StyleBox["argument", "TI"],
  ", and a length, called the ",
  StyleBox["absolute value", "TI"],
  " or ",
  StyleBox["norm", "TI"],
  ". Thus, the complex number ",
  Cell[BoxData[
      \(TraditionalForm\`z\)], "InlineFormula"],
  " is equal to ",
  StyleBox["Abs[", "MR"],
  StyleBox["z", "TI"],
  StyleBox["]", "MR"],
  " ",
  StyleBox["Exp[I", "MR"],
  " ",
  StyleBox["Arg[", "MR"],
  StyleBox["z", "TI"],
  StyleBox["]]", "MR"],
  ". \nThe functions ",
  StyleBox["ArgColor", "MR"],
  ", ",
  StyleBox["ArgShade", "MR"],
  ", and ",
  StyleBox["ColorCircle", "MR"],
  " provided in this package are enhanced graphics directives. ",
  StyleBox["ArgColor", "MR"],
  " and ",
  StyleBox["ArgShade", "MR"],
  " allow you to specify the color or gray level of graphics elements using \
the argument of a complex number. ",
  StyleBox["ColorCircle[", "MR"],
  StyleBox["r", "TI"],
  StyleBox["]", "MR"],
  " treats ",
  Cell[BoxData[
      \(TraditionalForm\`r\)], "InlineFormula"],
  " cyclically, but with a period of ",
  Cell[BoxData[
      \(TraditionalForm\`2  \[Pi]\)], "InlineFormula"],
  " instead of ",
  Cell[BoxData[
      \(TraditionalForm\`1\)], "InlineFormula"],
  ". It begins with red and runs through the spectrum, blending the high end \
back into red. "
}], "Text",
  CellTags->{"S5.26.1", "1.2"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"ArgColor[\\\\\\\"\\\", \\\
\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"z\\\\\\\"\\\", \\\"TI\\\"]\\)\\!\\(\
\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>", "\<\"give a \
color value whose hue is proportional to the argument of the complex number \
\\!\\(\\*StyleBox[\\\"\\\\\\\"z\\\\\\\"\\\", \\\"TI\\\"]\\) \"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"ArgShade[\\\\\\\"\\\", \\\
\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"z\\\\\\\"\\\", \\\"TI\\\"]\\)\\!\\(\
\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>", "\<\"give a gray \
level\"\>"},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"ColorCircle[\\\\\\\"\\\", \
\\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"r\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \
\"\>", 
                  
                  RowBox[{"\<\"give a color value whose hue is proportional \
to \"\>", 
                    StyleBox["r",
                      "InlineFormula"], "\<\" \"\>"}]},
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"ColorCircle[\\\\\\\"\\\", \
\\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"r\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \\!\
\\(\\*StyleBox[\\\"\\\\\\\"b\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \
\"\>", 
                  
                  RowBox[{"\<\"give a color value whose hue is proportional \
to \"\>", 
                    StyleBox["r",
                      "InlineFormula"], "\<\", with brightness \"\>", 
                    StyleBox["b",
                      "InlineFormula"], "\<\" \"\>"}]}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"S5.26.1", "1.3"}],

Cell["\<\
Colors and gray levels using the arguments of complex numbers. \
\
\>", "Caption",
  CellTags->"S5.26.1"],

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

Cell["<<Graphics`ArgColors`", "Input",
  CellLabel->"In[1]:= ",
  CellTags->"S5.26.1"],

Cell["The values of this function are points on the unit circle. ", \
"MathCaption",
  CellTags->{"S5.26.1", "1.5"}],

Cell["un[k_] := Exp[2 Pi I k / 10]", "Input",
  CellLabel->"In[2]:= ",
  CellTags->"S5.26.1"],

Cell[TextData[{
  "For numbers near the negative ",
  Cell[BoxData[
      \(TraditionalForm\`x\)], "InlineFormula"],
  " axis, ",
  StyleBox["ArgShade", "MR"],
  " gives a low gray level. The shade grows darker as you move clockwise \
around the circle. "
}], "MathCaption",
  CellTags->{"S5.26.1", "1.6"}],

Cell[CellGroupData[{

Cell["\<\
Show[Graphics[Table[
   {ArgShade[un[j]],
   Disk[{Re[un[j]], Im[un[j]]}, 0.2]},
   {j, 10}], AspectRatio -> Automatic]]\
\>", "Input",
  CellLabel->"In[3]:= ",
  CellTags->"S5.26.1"],

Cell[GraphicsData["PostScript", "\<\
%!
%%Creator: Mathematica
%%AspectRatio: .95921 
MathPictureStart
/Mabs {
Mgmatrix idtransform
Mtmatrix dtransform
} bind def
/Mabsadd { Mabs
3 -1 roll add
3 1 roll add
exch } bind def
%% Graphics
%%IncludeResource: font Courier
%%IncludeFont: Courier
/Courier findfont 10  scalefont  setfont
% Scaling calculations
0.5 0.396825 0.479607 0.396825 [
[ 0 0 0 0 ]
[ 1 .95921 0 0 ]
] MathScale
% Start of Graphics
1 setlinecap
1 setlinejoin
newpath
0 0 m
1 0 L
1 .95921 L
0 .95921 L
closepath
clip
newpath
.6 g
.82104 .71285 m
.82104 .71285 .07937 0 365.73 arc
F
.7 g
.62263 .85701 m
.62263 .85701 .07937 0 365.73 arc
F
.8 g
.37737 .85701 m
.37737 .85701 .07937 0 365.73 arc
F
.9 g
.17896 .71285 m
.17896 .71285 .07937 0 365.73 arc
F
1 g
.10317 .47961 m
.10317 .47961 .07937 0 365.73 arc
F
.1 g
.17896 .24636 m
.17896 .24636 .07937 0 365.73 arc
F
.2 g
.37737 .1022 m
.37737 .1022 .07937 0 365.73 arc
F
.3 g
.62263 .1022 m
.62263 .1022 .07937 0 365.73 arc
F
.4 g
.82104 .24636 m
.82104 .24636 .07937 0 365.73 arc
F
.5 g
.89683 .47961 m
.89683 .47961 .07937 0 365.73 arc
F
% End of Graphics
MathPictureEnd
\
\>"], "Graphics",
  ImageSize->{300, 180},
  ImageCacheValid->False,
  CellTags->"S5.26.1"],

Cell[BoxData[
    TagBox[\(\[SkeletonIndicator]  Graphics  \[SkeletonIndicator]\),
      False,
      Editable->False]], "Output",
  CellLabel->"Out[3]= ",
  CellTags->"S5.26.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.26.1"->{
    Cell[1717, 49, 139, 6, 70, "Subsection",
      CellTags->{"S5.26.1", "1.1"}],
    Cell[1859, 57, 1542, 49, 70, "Text",
      CellTags->{"S5.26.1", "1.2"}],
    Cell[3404, 108, 1990, 40, 70, "Text",
      CellTags->{"S5.26.1", "1.3"}],
    Cell[5397, 150, 115, 4, 70, "Caption",
      CellTags->"S5.26.1"],
    Cell[5515, 156, 79, 1, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.4"}],
    Cell[5597, 159, 86, 2, 70, "Input",
      CellTags->"S5.26.1"],
    Cell[5686, 163, 116, 2, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.5"}],
    Cell[5805, 167, 93, 2, 70, "Input",
      CellTags->"S5.26.1"],
    Cell[5901, 171, 306, 9, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.6"}],
    Cell[6232, 184, 193, 7, 70, "Input",
      CellTags->"S5.26.1"],
    Cell[6428, 193, 1230, 79, 70, 1156, 76, "GraphicsData", 
    "PostScript", "Graphics",
      ImageCacheValid->False,
      CellTags->"S5.26.1"],
    Cell[7661, 274, 178, 5, 70, "Output",
      CellTags->"S5.26.1"]},
  "1.1"->{
    Cell[1717, 49, 139, 6, 70, "Subsection",
      CellTags->{"S5.26.1", "1.1"}]},
  "1.2"->{
    Cell[1859, 57, 1542, 49, 70, "Text",
      CellTags->{"S5.26.1", "1.2"}]},
  "1.3"->{
    Cell[3404, 108, 1990, 40, 70, "Text",
      CellTags->{"S5.26.1", "1.3"}]},
  "1.4"->{
    Cell[5515, 156, 79, 1, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.4"}]},
  "1.5"->{
    Cell[5686, 163, 116, 2, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.5"}]},
  "1.6"->{
    Cell[5901, 171, 306, 9, 70, "MathCaption",
      CellTags->{"S5.26.1", "1.6"}]}
  }
*)

(*CellTagsIndex
CellTagsIndex->{
  {"S5.26.1", 8480, 299},
  {"1.1", 9477, 326},
  {"1.2", 9571, 329},
  {"1.3", 9661, 332},
  {"1.4", 9752, 335},
  {"1.5", 9847, 338},
  {"1.6", 9943, 341}
  }
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 139, 6, 70, "Subsection",
  CellTags->{"S5.26.1", "1.1"}],
Cell[1859, 57, 1542, 49, 70, "Text",
  CellTags->{"S5.26.1", "1.2"}],
Cell[3404, 108, 1990, 40, 70, "Text",
  CellTags->{"S5.26.1", "1.3"}],
Cell[5397, 150, 115, 4, 70, "Caption",
  CellTags->"S5.26.1"],
Cell[5515, 156, 79, 1, 70, "MathCaption",
  CellTags->{"S5.26.1", "1.4"}],
Cell[5597, 159, 86, 2, 70, "Input",
  CellTags->"S5.26.1"],
Cell[5686, 163, 116, 2, 70, "MathCaption",
  CellTags->{"S5.26.1", "1.5"}],
Cell[5805, 167, 93, 2, 70, "Input",
  CellTags->"S5.26.1"],
Cell[5901, 171, 306, 9, 70, "MathCaption",
  CellTags->{"S5.26.1", "1.6"}],

Cell[CellGroupData[{
Cell[6232, 184, 193, 7, 70, "Input",
  CellTags->"S5.26.1"],
Cell[6428, 193, 1230, 79, 70, 1156, 76, "GraphicsData", "PostScript", \
"Graphics",
  ImageCacheValid->False,
  CellTags->"S5.26.1"],
Cell[7661, 274, 178, 5, 70, "Output",
  CellTags->"S5.26.1"]
}, Open  ]]
}
]
*)




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

