mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Convert cosd() function into a macro.
This commit is contained in:
@@ -3684,11 +3684,8 @@ mean_december_solstice(double y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Cosine of an angle specified in degrees */
|
/* Cosine of an angle specified in degrees */
|
||||||
static double
|
#define PI_BY_180 0.01745329251994329576923690768
|
||||||
cosd(double degrees)
|
#define cosd(theta) cos( (theta) * PI_BY_180)
|
||||||
{
|
|
||||||
return cos((degrees / 180.0) * 3.14159265358979);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Astronomical Algorithms by Meeus, p. 179
|
/* Astronomical Algorithms by Meeus, p. 179
|
||||||
These weird periodic components refine the mean solstice/equinox dates
|
These weird periodic components refine the mean solstice/equinox dates
|
||||||
|
|||||||
Reference in New Issue
Block a user