-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmisc.cpp
34 lines (26 loc) · 1.09 KB
/
misc.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
Copyright 1996, Christopher Osburn, Lunar Outreach Services,
As part of the ccal program by Zhuo Meng, this version is
distributed under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
misc.cpp
1996/02/11
Miscellaneous routines for moon phase programs
*/
#include "moon.h"
#include <math.h>
extern double torad(double x)
/* convert x to radians */
{
x = fmod(x, 360.0); /* normalize the angle */
return ((x) * 0.01745329251994329576);
/* and return the result */
}