6 |
|
* 1 Avenue Eugene Freyssinet, Saint-Quentin-Yvelines, France |
7 |
|
*/ |
8 |
|
|
9 |
+ |
#define _USE_MATH_DEFINES |
10 |
|
#include <stdio.h> |
11 |
|
#include <string.h> |
12 |
|
#include <math.h> |
17 |
|
#include "paths.h" |
18 |
|
|
19 |
|
#define DOT(v1,v2) (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2]) |
19 |
– |
#define _USE_MATH_DEFINES |
20 |
|
|
21 |
|
double normsc(); |
22 |
|
|
102 |
|
double solar_sunrise(int month, int day); |
103 |
|
double stadj(); |
104 |
|
int jdate(int month, int day); |
105 |
– |
|
106 |
– |
|
107 |
– |
/* sun calculation constants */ |
108 |
– |
extern double s_latitude; |
109 |
– |
extern double s_longitude; |
110 |
– |
extern double s_meridian; |
105 |
|
|
106 |
|
const double AU = 149597890E3; |
107 |
|
const double solar_constant_e = 1367; /* solar constant W/m^2 */ |