Számítsa húsvétot: így készül a dátum évente
A húsvét minden évben más napra esik. A húsvéti idő kiszámítható. Carl Friedrich Gauß matematikus megtudta, hogyan lehet ezt megtenni. Mi biztosítja az Ön számára a szükséges matematikai alapokat és elmagyarázza a képletet.
Számolja ki a Húsvétot - a matematikai alapokat
Gauss az úgynevezett modulo számítást alkalmazta a húsvéti dátum kiszámításához használt képletre. A dátum kiszámításához meg kell értenie ezt a modulo számítást. De ez nem olyan nehéz.
- A modulor számítása az a maradék, amely két szám felosztásakor marad. A számításhoz csak egész számokat használunk, itt nincs vessző. A modulo számítás rövidítése "mod".
- Egy példa megkönnyíti az elv megértését: ossza meg 15-el 2-ig, a többi 1-et, mert kétszer 7-et 14-nek, a többi 1-et adja meg. Modulo számításként a következőképpen írnánk: 15 mod 2 = 1 (kiejtve 15 modulo 2 értéke 1).
Hogyan lehet kiszámítani a húsvéti dátumot?
A húsvéti dátumot viszonylag könnyű meghatározni a következő évekre. A képlet egyes elemei a következők:
- a = év mod 4
- b = évi mod 7
- c = 19 éves mod
- d = (19c + 24) mod 30
- e = (2a + 4b + 6d + 5) 7. mod
- f = (c + 11d + 22e) / 451
- A következőképpen határozhatja meg a húsvéti vasárnapot: 22 + d + e-7f
- Ha ez az eredmény nagyobb, mint 31, húsvét áprilisban van. Ezután a következő képletet kell használni a húsvéti vasárnap = 22 + d + e -7f-31 = d + e-7f-9 kiszámításához.
- Az eredmény azt a hónapot mutatja, amelyben a húsvét az adott évben esik. Ha 31-nél nagyobb, húsvét áprilisban van. A húsvéti vasárnap dátumának meghatározásához a következő képletet kell használnia: 22 + d + e -7f-31 = d + e-7f-9.
- Gauss maga is megtalálta a sajátosságát a képletében: Ha a számlán húsvéti dátumként április 26 látható, akkor ehelyett március 19-t kell beállítania.
Példa a húsvéti képletre: számítsa ki a 2020-as dátumot
A húsvétet mindig márciusban vagy áprilisban ünneplik. Az előző szakaszban ismertetett előírásokkal kiszámíthatja, hogy melyik nap esik a Húsvét 2020 naptárába.
- a = 2020 mod 4 = 0
- b = 2020 mod 7 = 4
- c = 2020 mod 19 = 6
- d = (19x6 + 24) mod 30 = 138 mod 30 = 18
- e = (2x0 + 4x4 + 6x18 +5) mod 7 = 129 mod 7 = 3
- f = (6 + 11x18 + 22x3) / 451 = 270/451 = 0
- A húsvéti vasárnap dátuma a következőképpen határozható meg: 22 + 18 + 3 - 7x0 = 43
- Az eredmény nagyobb, mint 31, tehát az ünnep áprilisban van, amint azt a második rész magyarázza. Tehát ez a képlet érvényes: 22 + 18 + 3 - 7x0 -31 = 12.
- A húsvéti vasárnap tehát 2020. április 12-én esik. Egyébként azt is megmagyarázzuk, miért ünnepeljük a húsvétot, bár egy másik cikkben. Azt is megtudja, honnan származik a Húsvét név.
A húsvét a kereszténység legfelsõbb fesztiválja, ám a húsvéti vasárnap csak egy a sok németországi ünnepnapról. Az összes szövetségi állam áttekintése megtalálható a következő cikkben.