From a664a6947ebcd8e9408fb8820fa7317042daf211 Mon Sep 17 00:00:00 2001 From: Thomas Daniels Date: Mon, 26 Aug 2019 11:21:57 +0200 Subject: [PATCH] Remove semicolon at line 1116 in lunar.rs Because of this semicolon, the fourth term of the expression was just getting ignored. --- src/lunar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lunar.rs b/src/lunar.rs index d8c99d6..a5351e2 100644 --- a/src/lunar.rs +++ b/src/lunar.rs @@ -1113,7 +1113,7 @@ pub fn time_of_phase(date: &time::Date, phase: &Phase) -> f64 { let W = 0.00306 - 0.00038 * E * M.cos() - + 0.00026 * M1.cos(); + + 0.00026 * M1.cos() - 0.00002 * ((M1 - M).cos() - (M1 + M).cos() - (2.0 * F).cos()); JD += match phase {