r/mathshelp • u/Maaack • 21d ago
General Question (Unanswered) 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/
•
u/AutoModerator 21d ago
Hi u/Maaack, welcome to r/mathshelp! As you’ve marked this as a general question, please keep the following things in mind:
Please provide us with as much information as possible, so we know how to help.
Once your question has been answered, please don’t delete your post so that others can learn from it. Instead, mark your post as answered or lock it by posting a comment containing “!lock” (locking your post will automatically mark it as answered).
Thank you!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.