Desmos sin wave sum shows different to code

$\begingroup$

I have followed The Coding Train's Discrete Fourier Transformation series, and added a feature which spits out the coefficients of the equation.

I wrote test in the program, which looked nice. However, when I plugged in the coefficients into Desmos, these were the results (all attempts were messy):

Program:

Desmos:

enter image description here

I believe the error is related to the function in desmos / wrong data shift, however I am unable to fix this. The data seems to be lining up in similar spaces in all of my attempts.

Q & A:

  • The data from the program seems to be correct
  • The data is not heavily modified from the original program, as it is clearly not the issue
  • The data is transferred to desmos simply by copying and pasting the results from the console
  • The desmos formula can be found in the top left of the image

The Coding Train : Code (unmodified)

EDIT:

If there is another way of generating the circles so that this may work, please feel free to respond. Any help whatsoever is always appreciated.

$\endgroup$ 3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like