/* */ #include #include #define DEG_RAD 0.01745329251 /* converts degrees to radians */ double RH[100][2]= { 4.50,0.50, 3.25,0.00, 2.00,0.50, 1.75,2.00, 1.50,2.50, 0.75,2.25 }; int Num=5; main() { int i,j,k,n; double x,y,r,h,z=0.0,dz,cosz,sinz; FILE *fp; fp=fopen("hat.v","wt"); if(!fp) { printf("Could not open 'hat.v' to write.\n\n"); exit(0); } printf("Give number of points around a circle.\n"); scanf("%d",&n); dz=(double)360.0/(double)n; printf("There are %d points\n",n); printf("Del Angle = %lf\n",dz); dz*=DEG_RAD; for(i=0;i