Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6195 > unrolled thread

Re: Bug in FourierTransform?

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-11-05 09:50 +0000
Last post2011-11-06 10:56 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Bug in FourierTransform? Bill Rowe <readnews@sbcglobal.net> - 2011-11-05 09:50 +0000
    Re: Bug in FourierTransform? Rui <rui.rojo@gmail.com> - 2011-11-06 10:56 +0000

#6195 — Re: Bug in FourierTransform?

FromBill Rowe <readnews@sbcglobal.net>
Date2011-11-05 09:50 +0000
SubjectRe: Bug in FourierTransform?
Message-ID<j930t0$a8v$1@smc.vnet.net>
On 11/4/11 at 6:01 AM, rui.rojo@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?

[toc] | [next] | [standalone]


#6218

FromRui <rui.rojo@gmail.com>
Date2011-11-06 10:56 +0000
Message-ID<j95p4i$m57$1@smc.vnet.net>
In reply to#6195
I know the # symbol, I was using it to implement fourier transforms of functions, with something like this
Evaluate@FourierTransform[f1[\[FormalT]], \[FormalT], #]&.
I had done it a while ago in a package and just the other day I discovered it failed for these special cases.
Of course, I can understand that FourierTransform might just need symbols as last argument, but I thought it didn't.
I just changed the pure function to a Function[p, Evaluate@...] and it all seems fine now.
Thanks

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web