Drawing a square with epicycles

You can study the GGBScript for details in the [b]Setup[/b] button. In this version I was able to reduce the amount of lists to calculate the [i]Discrete Fourier Transform[/i] with low frequencies.[br][br]Check this tweet to see an animation: [br][br][url=https://twitter.com/jcponcemath/status/1219928096880525317?s=20]https://twitter.com/jcponcemath/status/1219928096880525317?s=20[/url][br][br]This is an adaptation from the amazing worksheet [url=https://www.geogebra.org/m/vexwne6r]Epiciclos e Séries de Fourier (Batman)[/url] made by [url=https://www.geogebra.org/u/hjbortol]Humberto Jose Bortolossi[/url].[br][br]Finally, the GGBscript was significantly improved thanks to the great master [url=https://www.geogebra.org/u/thijs]Thijs[/url]. Now the performance of the applet is better.[br][br]Enjoy!
For more info see:[br][list][*][url=https://mathed.miamioh.edu/index.php/ggbj/article/view/197]Tracing closed curves with epicycles: A fun application of the discrete Fourier transform.[/url][/*][*][url=https://mathed.miamioh.edu/index.php/ggbj/article/view/188]Trigonometric intepolation using the Discrete Fourier Transform.[/url][/*][/list]

Information: Drawing a square with epicycles