Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easter Sunday computation
#61
Aga and WhiteTiger,

In this thread back in June 2003, each of you posted code for the calculation of Easter Sunday. At the time, I only did some spot checks on the output of your solutions.

Today, October 19, 2006, I wrote a program to be able to test Easter Sunday algorithms against one of two proven algorithms (one of mine and the other by Antoni Gual).

I searched for your algorithms submitted in June 2003, and incorporated them into the test program. These are the results:

Aga's algorithm: For the years from 1600 to 9999, there were 61 invalid dates for Easter generated. Curiously, all the bad dates were in the month of May.

WhiteTiger algorithm: produced the Easter dates 100% perfectly for years 1600 to 9999.

"better late than never."

Regards..... Moneo
Reply
#62
Ninkazu: Yes, you're right. Stupid Christians blame the Jews for killing Christ. But if they hadn't, there would be no Christianity, and the only way to heaven would be becoming a Jew.
Second: You say the "virgin Mary" was mistranslated and should have been "young woman Mary". Any sources for that?
In the beginning, there is darkness – the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Reply
#63
he got it from the movie snatch

let this thread die or i will eat your liver with fava beans.
Reply
#64
Fava beans? what are fava beans?
Maybe you mean java beans?
In the beginning, there is darkness – the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Reply
#65
Quote:Fava beans? what are fava beans?
Maybe you mean java beans?

By mentioning to eat with "fava beans", it shows that Cha0s is a connoisseur.

Fava beans are a type of kidney beans which are commonly eaten in Europe, and mostly the white ones. They are generally combined with pieces of meat, sausage, etc. to form an all-in-one dish. I have enjoyed several variations of these dishes in northern Spain, including the famous "Fabada Asturiana". I also have enjoyed similar styles from Greece and Brazil.

"Java beans" --- that's funny, Skyler.

*****
Reply
#66
Ah... I see...

"mostly the white ones"
Kidney beans or Europes?
In the beginning, there is darkness – the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Reply
#67
Quote:Aga's algorithm: For the years from 1600 to 9999, there were 61 invalid dates for Easter generated. Curiously, all the bad dates were in the month of May.

Probably some sort of rounding error somewhere?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#68
Quote:
Quote:Aga's algorithm: For the years from 1600 to 9999, there were 61 invalid dates for Easter generated. Curiously, all the bad dates were in the month of May.

Probably some sort of rounding error somewhere?

No, Aga, there's no rounding in your original 2003 submitted algorithm.

I found the problem because WhiteTiger submitted a modified version of the same Butcher algorithm.
In your code:
Code:
m = (h + k + 7 * l + 114)

should be:

m = (h + k - 7 * l + 114)
That is, the + 7 should be - 7.
Then it works 100%.
A simple typo error.

Regards..... Moneo
Reply
#69
I see... no stone left unturned, eh, Moneo? :flat:
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#70
Quote:I see... no stone left unturned, eh, Moneo? :flat:
That's true, Aga. Didn't want to leave you thinking that your algorithm didn't work right.

Now, I think, after fixing it, and maybe testing it quickly, you can tuck your algorithm away for whenever you might need it again.

*****
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)