I have the following simple sine formula (in degrees) which I am plotting on the screen. The user is able to change the values of the variables waveAmplitude, angleCoef, and horizontalShift.
y = waveAmplitude * Math.sin(x * angleCoef + horizontalShift)
I have to also display the wavelength on the screen. But I can't quite figure out how to calculate the wavelength.
So how exactly can I calculate wavelength for my simple sine function?