(************** 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[      4712,        111]*)
(*NotebookOutlinePosition[      5357,        133]*)
(*  CellTagsIndexPosition[      5313,        129]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[BoxData[{
    RowBox[{
      RowBox[{"(*", "\[IndentingNewLine]", Cell["\<\
F2FTSTEPDS
The real FT, double sided step function.
Fourier transform of DOUBLE SIDED step function of width 0 to d.
\
\>"], "\[IndentingNewLine]", "*)"}], 
      "\[IndentingNewLine]", \(<< Graphics`Legend`\)}], "\[IndentingNewLine]",
   
    RowBox[{\(<< Graphics`MultipleListPlot`\), 
      "\[IndentingNewLine]"}], "\[IndentingNewLine]", \(i\  = \ 
        Range[0, 255, 1];\), "\[IndentingNewLine]", 
    RowBox[{\(d\  = \ 20;\), "\[IndentingNewLine]", 
      "\[IndentingNewLine]", \( (*\ 
        Originial\ Function\ *) \)}], "\[IndentingNewLine]", \(x\_i\  = \ \
\((UnitStep[i] - UnitStep[i - d])\) + \ 
          UnitStep[i - 255 + d];\), "\[IndentingNewLine]", 
    RowBox[{\(ShowLegend[
          MultipleListPlot[Transpose[{i/255, Re[x\_i\ ]}], 
            Transpose[{i/255, Im[x\_i\ ]}], PlotJoined \[Rule] True, 
            DisplayFunction \[Rule] Identity, 
            PlotStyle \[Rule] {Hue[1], Hue[0.5]}, 
            AxesLabel \[Rule] {"\<i/255\>", "\<\>"}, 
            PlotRange \[Rule] {{0, 1}, {\(-0.5\), 1.5}}], {{{Hue[
                  1], \*"\"\<Re[\!\(x\_i\)]\>\""}, {Hue[
                  0.5], \*"\"\<Im[\!\(x\_i\)]\>\""}}, 
            LegendPosition \[Rule] {1.1, 0}}];\), "\[IndentingNewLine]", 
      "\[IndentingNewLine]", 
      "\[IndentingNewLine]", \( (*\ 
        Fourier\ Transform\ *) \)}], "\[IndentingNewLine]", 
    RowBox[{\(c = \ Fourier[x\_i];\), "\[IndentingNewLine]", 
      "\[IndentingNewLine]", 
      "\[IndentingNewLine]", \( (*\ 
        The\ first\ zero\ of\ the\ FT\nis\ at\ 1/2  
          d\ *) \)}], "\[IndentingNewLine]", 
    RowBox[{\(ShowLegend[
          MultipleListPlot[Transpose[{i/255, Re[c\ ]}], 
            Transpose[{i/255, Im[c]}], PlotJoined \[Rule] True, 
            DisplayFunction \[Rule] Identity, 
            PlotStyle \[Rule] {Hue[1], Hue[0.5]}, 
            AxesLabel \[Rule] {"\<i/255\>", "\<\>"}, 
            PlotRange \[Rule] {{0, 0.6}, {\(-2\), 4}}], {{{Hue[
                  1], "\<Re[c]\>"}, {Hue[0.5], "\<Im[c]\>"}}, 
            LegendPosition \[Rule] {1.1, 0}}];\), "\[IndentingNewLine]", 
      "\[IndentingNewLine]", 
      "\[IndentingNewLine]", \( (*\ 
        Fourier\ transform\ \((inverse)\)\ of\ Fourier\ transform\ *) \)}], "\
\[IndentingNewLine]", \(z\  = \ InverseFourier[c];\), "\[IndentingNewLine]", 
    RowBox[{\(ShowLegend[
          MultipleListPlot[Transpose[{i/255, Re[z\ ]}], 
            Transpose[{i/255, Im[z]}], PlotJoined \[Rule] True, 
            DisplayFunction \[Rule] Identity, 
            PlotStyle \[Rule] {Hue[1], Hue[0.5]}, 
            AxesLabel \[Rule] {"\<i/255\>", "\<\>"}, 
            PlotRange \[Rule] {{0, 1}, {\(-0.5\), 1.5}}], {{{Hue[
                  1], "\<Re[z]\>"}, {Hue[0.5], "\<Im[z]\>"}}, 
            LegendPosition \[Rule] {1.1, 0}}];\), "\[IndentingNewLine]", 
      "\[IndentingNewLine]"}], "\[IndentingNewLine]", \( (*\ 
      1/2  d\  = \ 0.025\ *) \)}], "Input"]
},
FrontEndVersion->"4.1 for Microsoft Windows",
ScreenRectangle->{{0, 1024}, {0, 695}},
WindowSize->{495, 537},
WindowMargins->{{Automatic, 36}, {Automatic, 34}}
]

(*******************************************************************
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, 3003, 59, 1056, "Input"]
}
]
*)



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

