| 21 |
|
#include <stdio.h> |
| 22 |
|
#include <math.h> |
| 23 |
|
|
| 24 |
– |
#ifndef atof |
| 25 |
– |
extern double atof(); |
| 26 |
– |
#endif |
| 27 |
– |
|
| 24 |
|
#define PI 3.141592653589793 |
| 25 |
|
#define DELTA 5. /* MINIMAL SUSTAINED ANGLE IN DEGREES */ |
| 26 |
|
|
| 35 |
|
int argc; |
| 36 |
|
char *argv[]; |
| 37 |
|
{ |
| 42 |
– |
double fabs(); |
| 38 |
|
double width, delem, depth, rcurv = 0.0, angle; |
| 39 |
|
double beta, gamma, theta, chi; |
| 40 |
|
int i, j, k, l; |
| 51 |
|
angle = atof(argv[7]); |
| 52 |
|
if (argc == 10) |
| 53 |
|
if (!strcmp(argv[8], "-r")) |
| 54 |
< |
rcurv = atof(argv[8]); |
| 54 |
> |
rcurv = atof(argv[9]); |
| 55 |
|
else if (!strcmp(argv[8], "+r")) |
| 56 |
< |
rcurv = -atof(argv[8]); |
| 56 |
> |
rcurv = -atof(argv[9]); |
| 57 |
|
else |
| 58 |
|
goto userr; |
| 59 |
|
|
| 151 |
|
makeflat(w,d,a) |
| 152 |
|
double w, d, a; |
| 153 |
|
{ |
| 159 |
– |
double sin(), cos(); |
| 154 |
|
double h; |
| 155 |
|
|
| 156 |
|
h = d*sin(a); |