21 |
|
#include <stdio.h> |
22 |
|
#include <math.h> |
23 |
|
|
24 |
+ |
#ifndef atof |
25 |
+ |
extern double atof(); |
26 |
+ |
#endif |
27 |
+ |
|
28 |
|
#define PI 3.141592653589793 |
29 |
|
#define DELTA 5. /* MINIMAL SUSTAINED ANGLE IN DEGREES */ |
30 |
|
|
39 |
|
int argc; |
40 |
|
char *argv[]; |
41 |
|
{ |
38 |
– |
double atof(), fabs(); |
42 |
|
double width, delem, depth, rcurv = 0.0, angle; |
43 |
|
double beta, gamma, theta, chi; |
44 |
|
int i, j, k, l; |
55 |
|
angle = atof(argv[7]); |
56 |
|
if (argc == 10) |
57 |
|
if (!strcmp(argv[8], "-r")) |
58 |
< |
rcurv = atof(argv[8]); |
58 |
> |
rcurv = atof(argv[9]); |
59 |
|
else if (!strcmp(argv[8], "+r")) |
60 |
< |
rcurv = -atof(argv[8]); |
60 |
> |
rcurv = -atof(argv[9]); |
61 |
|
else |
62 |
|
goto userr; |
63 |
|
|
155 |
|
makeflat(w,d,a) |
156 |
|
double w, d, a; |
157 |
|
{ |
155 |
– |
double sin(), cos(); |
158 |
|
double h; |
159 |
|
|
160 |
|
h = d*sin(a); |