sine wave code in c

C

Curt Wuollet

#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
 
Top