MathGroup Archive 1998

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

Search the Archive

FourierTransform rect function


  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] Out[2]=
FourierTransform[If[Abs[t]>1/2, 0, 1], t, f] # It refuses to do F.T

However, I can manually do the F.T:
In[3] := Integrate[rect[t] Exp[-I 2 Pi f t], {t, -Infinity, Infinity}]
Out[3] = (Exp[-I f Pi] - Exp[I f Pi) I / (2 f Pi)

In[4] := ExpToTrig[%]
Out[4] = Sin[f Pi] / (f Pi)

This is correct F.T.

  Does anybody know where I did wrong here?  Thank your for your help in


Song Sam Liang
Graduate Student, Department of Electrical Engineering, Stanford
University, (650) 725-7062 (W),
(650) 497-6491(H)

  • Prev by Date: Re: Macintosh Mathematica Interface
  • Next by Date: RE: About ListPlot3D
  • Prev by thread: Re: Formatting and Style Sheet woes
  • Next by thread: Binary files