Qbasicnews.com
November 12, 2019, 11:11:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 ... 3 4 [5] 6
  Print  
Author Topic: Easter Sunday computation  (Read 19485 times)
Moneo
Na_th_an
*****
Posts: 1971


« Reply #60 on: October 19, 2006, 11:33:08 PM »

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
Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #61 on: October 20, 2006, 05:41:30 PM »

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?
Logged

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
Anonymous
Guest
« Reply #62 on: October 21, 2006, 06:06:01 AM »

he got it from the movie snatch

let this thread die or i will eat your liver with fava beans.
Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #63 on: October 23, 2006, 02:57:04 PM »

Fava beans? what are fava beans?
Maybe you mean java beans?
Logged

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
Moneo
Na_th_an
*****
Posts: 1971


« Reply #64 on: October 23, 2006, 03:56:51 PM »

Quote from: "Skyler"
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.

*****
Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #65 on: October 24, 2006, 01:35:01 PM »

Ah... I see...

"mostly the white ones"
Kidney beans or Europes?
Logged

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
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #66 on: October 26, 2006, 12:35:38 AM »

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?
Logged

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.
Moneo
Na_th_an
*****
Posts: 1971


« Reply #67 on: October 26, 2006, 08:04:20 PM »

Quote from: "Agamemnus"
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
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #68 on: October 27, 2006, 02:26:31 AM »

I see... no stone left unturned, eh, Moneo?  :flat:
Logged

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.
Moneo
Na_th_an
*****
Posts: 1971


« Reply #69 on: October 27, 2006, 10:29:15 PM »

Quote from: "Agamemnus"
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.

*****
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #70 on: October 29, 2006, 01:16:53 AM »

You know, it'd be nice if we could put that in the forum "FAQ"/wiki. I don't remember the pass anymore though. Do you?...
Logged

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.
Moneo
Na_th_an
*****
Posts: 1971


« Reply #71 on: October 30, 2006, 01:09:06 AM »

Quote from: "Agamemnus"
You know, it'd be nice if we could put that in the forum "FAQ"/wiki. I don't remember the pass anymore though. Do you?...

Good idea, but I don't have the pass either.
Maybe someone will post some help on how to get it.

*****
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #72 on: October 30, 2006, 05:04:55 PM »

I remembered it! I'll ask Sumo_Jo if I can email you the pass, too.
Logged

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.
Moneo
Na_th_an
*****
Posts: 1971


« Reply #73 on: October 30, 2006, 11:28:21 PM »

Thanks, Aga, got your PM on the subject.

*****
Logged
Anonymous
Guest
« Reply #74 on: October 31, 2006, 03:22:05 AM »

actually, hannibal lector is the connoisseur, i'm just a monkey.
Logged
Pages: 1 ... 3 4 [5] 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!