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:
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.

