Re: FoourierTransform of a function defined in sections

*To*: mathgroup at smc.vnet.net*Subject*: [mg70199] Re: FoourierTransform of a function defined in sections*From*: Mariusz Jankowski <mjankowski at usm.maine.edu>*Date*: Sat, 7 Oct 2006 07:07:38 -0400 (EDT)*References*: <eg4soa$ffu$1@smc.vnet.net>

Eckhard Schlemm wrote: > Hello, > > I want Mathematica to calculate the FourierTransform of a function which is > defined by Sin[x]^2 for Abs[x]<PI and zero else. I tried and defined the > function g as follows: > > g[x_]:=If[Abs[x]>PI,0,Sin[x]^2]; > > That works fine. But if I have mathematica try to determine the > FourierTransform by > > FourierTransform[g[x],x,p] > > I always get the error that the recursion limit and the iteration limit were > exceeded... > > what am I'm doing wrong? > > Any help is appreciated > > thanks > > Eckhard > > -- > _________________________ > Ludwig Schlemm > Tel: +49 (0) 160 91617114 > LudwigSchlemm at hotmail.com > > Do not use If, use Piecewise or combinations of UnitStep, Mariusz