During the last weeks I’ve taken a first-time look at the Fourier transform. One of the results is the following visualization for playing around with various wave forms. Enter a formula of your liking (e.g. Math.random() * Math.sin(arg)) and see the results.

Signal function

Change with time

Time domain signal

Transform output (i.e. the resulting points on the complex plane)

Frequency spectrum

There’s an error in your function