How can I generation sine function faster in c -
Is there any way in which I can calculate fast in sign function. When I produce a sine wave with 16,384 samples, I want to be 3. 9 6 seconds and I want to reduce it to 1 second.
The logic below is used for the sine wave and it is taking about 4 seconds for calculation. I also tried to optimize the code but its number help.
Help me out
int i; For float F, temp = (2 * M_PI) / 16384 (i = 0; i & lt; 16384; i ++) {f = sin (temp * i); }
There is no reason that you should not f More often, ever if the display is very important, the value of the values in the source is hardcoded.
Comments
Post a Comment