
Oggi, in mensa, si discuteva delle prossime ferie e del significato intrinseco della Pasqua, dopo essermi informato se qualcuno conosceva l‘algoritmo che stava alla base della scelta del giorno della resurrezione di cristo mi è balenata in mente una domanda a cui non so rispondere.
Perchè si festeggia il giorno della nascita il 25/12 e invece la resurrezione ha il giorno fluttuante?
Immagino siano misteri della fede …
Perchè la pasqua si basa sui cicli lunari… Come al solito hanno deciso di utilizzare feste già esistenti cambiandone il significato e legandole alle loro superstizioni.
Natale deriva molto probabilmente dalla festa Romana dei Saturnali. Pasqua non so.
Ok, ma tutto ciò non spiega perchè una fluttua e l’altra no :)
Jesus and Satan have a discussion as to who is the better programmer. This goes on for a few hours until they come to an agreement to hold a contest, with God as the judge.
They sit themselves at their computers and begin. They type furiously, lines of code streaming up the screen, for several hours straight. Seconds before the end of the competition, a bolt of lightning strikes, taking out the electricity. Moments later, the power is restored, and God announces that the contest is over.
He asks Satan to show what he has come up with. Satan is visibly upset, and cries, “I have nothing. I lost it all when the power went out.”
“Very well, then,” says God, “let us see if Jesus fared any better.”
Jesus enters a command, and the screen comes to life in vivid display, the voices of an angelic choir pour forth from the speakers. Satan is astonished.
He stutters, “B-b-but how? I lost everything, yet Jesus’ program is intact. How did he do it?”
“Everybody knows that:”, replies God… “JESUS SAVES!”
Riguardo il quesito sulla data “mobile”, il motivo è che la Pasqua cristiana è legata a quella ebraica. la quale a sua volta deriva da una festa delle popolazioni semite, il cui giorno era calcolato in base al calendario lunare babilonese.
Quando le tribù semite erano nomadi la festa era pastorale, quando le tribù divennero stanziali si trasformò in una festa agricola. Successivamente la festa fu associata alla fuga degli ebrei dall’Egitto. Secondo il nuovo testamento Gesù fu crocifisso alla vigilia della Pasqua ebraica, per questo motivo la Pasqua cristiana è immediatamente successiva.
A proposito dell’algoritmo per calcolare il giorno di pasqua:
private static GregorianCalendar getGiornoDiPasqua(int anno) {
int giorno, mese;
int a, b, c, d, e, f, n, h, i, j, k, l, m;
a = anno % 19;
b = anno / 100;
c = anno % 100;
d = b / 4;
e = b % 4;
f = (b + 8) / 25;
n = (b – f + 1) / 3;
h = (19 * a + b – d – n + 15) % 30;
i = c / 4;
k = c % 4;
l = (32 + 2 * e + 2 * i – h – k) % 7;
m = (a + 11 * h + 22 * l) / 451;
giorno = ( (h + l – 7 * m + 114) % 31) + 1;
mese = (h + l – 7 * m + 114) / 31;
return (new GregorianCalendar(anno, mese – 1, giorno));
}
Probabilmente gia’ lo sapevi, qui e’ in java.
non so come, ma nel post precedente viene visualizzata una faccina nel calcolo di f :
“f = ( b + 8 ) / 25 ;”
La faccina è il lato divertente dell’algoritmo :)
P.S.
Dato che ci sei mi mandi anche il codice per il calcolo del Natale? :-P