Use proper value of cos(6 degrees) for dusk/dawn

This commit is contained in:
David F. Skoll
2011-12-28 08:49:37 -05:00
parent 3a0e41afd1
commit 895536d7d3

View File

@@ -1991,9 +1991,9 @@ static int FSun(int rise, func_info *info)
double cosz = -0.014543897; /* for sunrise and sunset */
int r;
/* Civil twilight: 6 degrees */
/* Civil twilight: cos(6 degrees) */
if (rise == 2 || rise == 3) {
cosz = -0.1047197551;
cosz = -0.104528463268;
}
if (Nargs >= 1) {
if (!HASDATE(ARG(0))) return E_BAD_TYPE;