the problem I'm trying to solve is much more involved, that is I'm trying to get the Time Response for an Impulse Input for a loudspeaker starting from the pressure it generates over the frequency:
.
As you can see the Re part (Red) is symmetrical over the frequency, while the Im part (Blue) is anti-symmetrical, so, after the discretization and the InverseFourier, I would expect a Real result. None!
So I decided to make a simple example for your attention.
a = -(\[Pi]/2); b = \[Pi]/2; n = 9;
Rx = Range[a, b, (b - a)/(n - 1)];
T = Table[Cos[x] + I Sin[x], {x, Rx}];
G1 = ListPlot[Re[T], PlotRange -> {All, {-1.1, 1.1}}, PlotStyle -> Red];
G2 = ListPlot[Im[T], PlotRange -> {All, {-1.1, 1.1}}, PlotStyle -> Blue];
Show[{G1, G2}, GridLinesStyle -> Green]
Z = InverseFourier[T, FourierParameters -> {1, -1}]
would give me real numbers. I get however
{0.558593 + 0. I, 0.197397 - 0.0718465 I, 0.107042 - 0.0898191 I, 0.0575418 - 0.0996653 I, 0.018928 - 0.107346 I, -0.020304 - 0.11515 I, -0.072473 - 0.125527 I, -0.17356 - 0.145634 I, -0.673165 - 0.245012 I}
What is the correct way to proceed?
Thanks
