Answer the question
In order to leave comments, you need to log in
How to set a sine wave of a specific frequency in C#?
I can’t understand how to set a sinusoid with a certain frequency, so that it would be clearly visible, in accordance with the signatures of the column values. for example, to set the frequency to 100 Hz, there should be 100 oscillations per second, respectively. time on the horizontal axis.
tried to do it this way
chart1.Series[0].Points.AddXY(j, Math.Sin(2*Math.PI*1000*j));
Answer the question
In order to leave comments, you need to log in
Take a geometry textbook and read about the graph of the function of the sine of an angle, and there is a bit about the coefficients that change the appearance of the graph (frequency and amplitude) - this is called transforming the function graph. You can find it in Google using a similar phrase if you are too lazy to learn. Then think about the scale of your chart1, the spacing, and the x-axis labels. After that, you will understand that the question is not worth a damn. You will soon begin to ask how the ass is wiped, God forgive me.
So you need not 1000 coefficients, but 100. cos (2 * Pi * x) - 1 Hz, but cos (2 * Pi * 100 * x) - now 100 Hz. Just not sure what is your problem?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question