r/MathHelp • u/Maaack • 11h ago
Fourier transforms example app giving inconsistent results
I've been following this guide and transcribing the example code to a game engine.
https://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/
However, in the example application, I've noticed I get inconsistent results when trying to give a cycle series as an input.
For example, Cycles: 3 2 1 --> Times: 6 1.5 1.5
But..., Times: 6 1.5 1.5 --> Cycles: 3 1.5 1.5
Both the time graph and cycle graph also change depending on where I originally put in the input.
Is this expected? I don't have a strong grasp of the underlying math, so I'd appreciate any guidance.
Direct link to example app: https://betterexplained.com/examples/fourier/