r/MathHelp • • 14h 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/

2 Upvotes

1 comment sorted by

1

u/AutoModerator 14h ago

Hi, /u/Maaack! This is an automated reminder:

  • What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.