From c998048312990ddd9ef2637ef0c5b94902dae16a Mon Sep 17 00:00:00 2001 From: AlternateWalls <71268229+AlternateWalls@users.noreply.github.com> Date: Tue, 5 Oct 2021 17:58:05 -0400 Subject: [PATCH] Update easter.cpp --- others/easter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/others/easter.cpp b/others/easter.cpp index 39b5d1abc..e8aec5f5d 100644 --- a/others/easter.cpp +++ b/others/easter.cpp @@ -16,7 +16,10 @@ class easter if (y > 1582) { // Calculations (It's not worth going into detail and naming each of these differently) + + //Year of Metonic Cycle int a = y % 19; + int b = y / 100; int c = y % 100; int d = b / 4; @@ -26,7 +29,10 @@ class easter int h = (19 * a + b - d - g + 15) % 30; int i = c / 4; int k = c % 4; + + //The number of days from Paschal full moon to next Sunday int r = (32 + 2 * e + 2 * i - h - k) % 7; + int m = (a + 11 * h + 22 * r) / 451; int n = (h + r - 7 * m + 114) / 31; int p = (h + r - 7 * m + 114) % 31;