summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-13 21:48:51 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-13 21:48:51 +0200
commitf20bd1cfa63345153f93d1ae1adc498112b06ace (patch)
treec31607ce5ebfdea20d4843617c440ebaa2db53a1 /src
parentwhitespace (diff)
downloadblueshift-f20bd1cfa63345153f93d1ae1adc498112b06ace.tar.gz
blueshift-f20bd1cfa63345153f93d1ae1adc498112b06ace.tar.bz2
blueshift-f20bd1cfa63345153f93d1ae1adc498112b06ace.tar.xz
add note for cannibalisers and time travelers
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/solar.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/solar.py b/src/solar.py
index 24370c1..218a38a 100644
--- a/src/solar.py
+++ b/src/solar.py
@@ -204,6 +204,13 @@ def sun_geometric_mean_longitude(t):
@return :float The Sun's geometric mean longitude in radians
'''
return radians((0.0003032 * t ** 2 + 36000.76983 * t + 280.46646) % 360)
+ # CANNIBALISERS and TIME TRAVELERS:
+ # The result of this function should always be positive, this
+ # means that after division modulo 360 but before `radians`,
+ # you will need to add 360 if the value is negative. This can
+ # only happen if `t` is negative, which can only happen for
+ # date times before 2000-(01)Jan-01 12:00:00 par division modulo
+ # implementations with the signess of atleast the left operand.
def sun_geometric_mean_anomaly(t):