MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: FourierTransform rect func




Song Sam Liang  wrote:
|
|  I am having trouble with doing Fourier Transform on user-defined
|functions.  In particular, I can't transform a rect function.  The
|transcript is as follows:
|
|In[1]:= rect[x_] = If[Abs[x]>1/2, 0, 1] Out[1]= If[Abs[x] > 1/2, 0, 1]
|
|In[2] := FourierTransform[rect[t], t, f] |
|
To use the definition of FT that you want you need to use a non-default
for  the FourierFrequencyConstant option.

I don't think the FT command can handle functions defined with  (If) 
 statements.
However, it gives the result you expect when the function is defined
with  the UnitStep function.

In[1]:=
<<Calculus`FourierTransform`

In[7]:=
<<Calculus`DiracDelta`

In[8]:=
rect[x_]:=UnitStep[x+1/2]-UnitStep[x-1/2]

In[9]:=
SetOptions[FourierTransform, FourierFrequencyConstant->-2 Pi];

In[10]:=
FourierTransform[rect[t],t,f]

Out[10]=
Sin[f*Pi]/(f*Pi)

_________________
Ted Ersek




  • Prev by Date: ConvexHull3D
  • Next by Date: RE: Unexpected behavior with S
  • Prev by thread: ConvexHull3D
  • Next by thread: RE: Unexpected behavior with S