stmbl/sin.c

15 lines
219 B
C
Raw Permalink Normal View History

2013-12-09 22:04:24 +00:00
#include <stdio.h>
#include <math.h>
#define pi 3.14159265
int main(){
int steps = 1024;
printf("float sint[] = {");
for(int i = 0; i < steps; i++){
printf("%f,", sin(i * 2.0 * pi / steps));
}
printf("};");
}