This commit is contained in:
Frater 2017-09-24 01:45:36 +02:00
commit 43352ff262
1291 changed files with 220976 additions and 0 deletions

22
VISU/DOTAN.C Normal file
View file

@ -0,0 +1,22 @@
#include <stdio.h>
#include <math.h>
main()
{
int a,b;
double f,g;
printf(";Visual angle tangent table (256 words = 90 degrees)");
for(a=0;a<256;a++)
{
if(a<2) b=32767;
else
{
f=(double)a*2.0*3.141592653589/1024.0;
g=1/tan(f);
b=(int)(256*g);
}
if(!(a%12)) printf("\ndw ");
else printf(",");
printf("%5i",b);
}
}