can any one send the c code for sinewave? reach2rahul_s@rediffmail.com
C Curt Wuollet Apr 1, 2004 #2 #include <stdio.h> #include <math.h> double I,s; main() { for (I = 1 ; I < 360 ; I++) { s = sin( I * 6.28/360); printf("%f\n",s); } } or something like that compile with -lm on linux Regards cww
#include <stdio.h> #include <math.h> double I,s; main() { for (I = 1 ; I < 360 ; I++) { s = sin( I * 6.28/360); printf("%f\n",s); } } or something like that compile with -lm on linux Regards cww
M marc sinclair Apr 1, 2004 #3 try http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q="sine+wave"+c+program&btnG=Search I have code for a cosine, but it would need translating Marc
try http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q="sine+wave"+c+program&btnG=Search I have code for a cosine, but it would need translating Marc