Skip to main content
2 of 3
added 102 characters in body

Why amplitude is different while using 'Fourier' and 'FourierTransform' operations for 2*sin[x]?

I need to use the discrete fourier transform for function that represented as list of values. I started from the easy task to check am I use it right - try to reach the amplitude values fot 2*Sin[x] function. Looks like it should be somwhere about 2. But using the discrete 'Fourier' operation it is different. Can someone tell me - where is my mistakes?

Please see my observations:

data = Table[2*Sin[x], {x, 0, 100}]; ListPlot[data, Joined -> True]

enter image description here

ListPlot[Abs[Fourier[data]], Joined -> True, PlotRange -> All]

enter image description here

ListPlot[Table[ Abs[FourierTransform[2*Sin[x], x, w]] /. DiracDelta -> DiscreteDelta, {w, 0.1, 10, 0.1}], Joined -> True, PlotRange -> All]

enter image description here

How can I reach fo the 'Fourier' operation the same results as I reach for the 'FourierTransform'?

Thank you for help.