Re: Bug in FourierTransform?
- To: mathgroup at smc.vnet.net
- Subject: [mg122667] Re: Bug in FourierTransform?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Sat, 5 Nov 2011 04:46:54 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
On 11/4/11 at 6:01 AM, rui.rojo at gmail.com (Rui) wrote: >Is there anything about Slot that I don't know that explains this >behaviour? >FourierTransform[Sin[t], t, #] Out= 0 >Only by changing # to p I get the correct result The character # has special significance in Mathematica and cannot be used as a variable by itself. It is a place holder to be used something like: In[1]:= FourierTransform[#@t, t, w] & /@ {Sin, Cos} Out[1]= {I*Sqrt[Pi/2]*DiracDelta[w - 1] - I*Sqrt[Pi/2]*DiracDelta[w + 1], Sqrt[Pi/2]*DiracDelta[w - 1] + Sqrt[Pi/2]*DiracDelta[w + 1]} >It happens with Cos too, but not for imaginary exopnentials or other >simpel functions like UnitBox Bug? What is it you are trying to accomplish by using # in the manner you tried with FourierTransform?