A continuous (in time) sine wave can be defined as A*sin(2*PI*f*t) , where A is a certain amplitude, PI , well, 3.14 ..., f is the tone frequency in hertz and t is time in seconds.
Now, since you do not have continuous time, since your time is discrete, you replace dt*i instead of t and get A*sin(2*PI*f*dt*i) , where dt is the time between samples or 1/sample rate and i are the sample number. You can specify it as A*sin(2*PI*(f/Fs)*i) . Remember that if you select a specific sampling frequency Fs (in samples / seconds or just Hz), the highest tone can never exceed Fs/2 Hz.
Alexey Frunze
source share