Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8713 > unrolled thread
| Started by | Dana DeLouis <dana.del@gmail.com> |
|---|---|
| First post | 2012-02-23 10:51 +0000 |
| Last post | 2012-02-23 10:51 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Why the FourierTransform gives two different answers? Dana DeLouis <dana.del@gmail.com> - 2012-02-23 10:51 +0000
| From | Dana DeLouis <dana.del@gmail.com> |
|---|---|
| Date | 2012-02-23 10:51 +0000 |
| Subject | Re: Why the FourierTransform gives two different answers? |
| Message-ID | <ji55o8$7ab$1@smc.vnet.net> |
> Why the FourierTransform gives two different answers?
> In[1] FourierTransform[ (t - 5.0)^2*Exp[-(t - 5.0)^2 ], t, w]
> In[2] FourierTransform[ (t - 5)^2* Exp[-(t - 5)^2 ], t, w]
Hi. I don't have an answer, but an observation.
This seems strange, and I don't really see where the machine rounding
error is coming from.
If we take a basic formula of the Fourier equation, then the question is
why is the first part dropped to zero when done at machine precision.
FullSimplify[Integrate[(t - 5)^2*Exp[-(t - 5)^2], t]]
((-(1/2))*(-5 + t))/E^(-5 + t)^2 - (1/4)*Sqrt[Pi]*Erf[5 - t]
FullSimplify[Integrate[(t - 5.)^2*Exp[-(t - 5.)^2], t]]
0. - 0.44311346272637897*Erf[5. - 1.*t]
The difference is this part...
equ=-(1/2) E^-(-5+t)^2 (-5+t);
It plots nicely:
Plot[equ,{t,0,5}]
It has a nice value at 4:
N[equ] /.t->4
0.18394
But for some reason, simplifying it gives 0.
N[equ] //FullSimplify
0.
I don't have an explanation for this behavior (bug maybe??)
Even if we substitute w for t-5, it still doesn't reduce to zero at full
precision, and it does plot nicely.
FullSimplify[((-(1/2))*w)/E^w^2]
((-(1/2))*w)/E^w^2
= = = = = = = = = = = = = = =
HTH :>)
Dana DeLouis
Mac & Math 8
= = = = = = = = = = = = = = =
On Feb 21, 6:22 am, =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 <avde...@gmail.com> wrote:
> Why the FourierTransform gives two different answers?
>
> In[1] FourierTransform[ (t - 5.0)^2*Exp[-(t - 5.0)^2 ], t, w]
>
> In[2] FourierTransform[ (t - 5)^2* Exp[-(t - 5)^2 ], t, w]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web