mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-01 01:06:33 +00:00
39 lines
409 B
C
39 lines
409 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
|
|
#define PI 3.14159265358979323846264338327950
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
double d;
|
|
int i,r;
|
|
unsigned char c;
|
|
|
|
#if 0
|
|
for(i=0;i<16;i++) {
|
|
|
|
d=(((double)i)*2.0*PI)/16.0;
|
|
|
|
r=32*sin(d);
|
|
|
|
printf("%i, %02X\n",i,r);
|
|
|
|
}
|
|
#endif
|
|
for(i=0;i<64;i++) {
|
|
|
|
d=(((double)i)*2.0*PI)/64.0;
|
|
|
|
r=32*sin(d);
|
|
|
|
c=r;
|
|
|
|
printf("$%02X,",c);
|
|
|
|
}
|
|
printf("\n");
|
|
|
|
|
|
return 0;
|
|
}
|