| 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 |
|
|
| 30 |
|
double height; |
| 31 |
|
int nslats, nsurf; |
| 32 |
|
|
| 33 |
+ |
#ifdef DCL_ATOF |
| 34 |
+ |
extern double atof(); |
| 35 |
+ |
#endif |
| 36 |
|
|
| 37 |
+ |
|
| 38 |
|
main(argc, argv) |
| 39 |
|
int argc; |
| 40 |
|
char *argv[]; |
| 41 |
|
{ |
| 42 |
– |
double fabs(); |
| 42 |
|
double width, delem, depth, rcurv = 0.0, angle; |
| 43 |
|
double beta, gamma, theta, chi; |
| 44 |
|
int i, j, k, l; |
| 155 |
|
makeflat(w,d,a) |
| 156 |
|
double w, d, a; |
| 157 |
|
{ |
| 159 |
– |
double sin(), cos(); |
| 158 |
|
double h; |
| 159 |
|
|
| 160 |
|
h = d*sin(a); |