HP Forums
HP67 Date of Easter - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP67 Date of Easter (/thread-16671.html)



HP67 Date of Easter - HP67Child - 04-16-2021 06:00 PM

Hi

Is anybody interested in a HP67 program calculating the date of Easter of (almost) every given year?

HP67Child


RE: HP67 Date of Easter - Jake Schwartz - 04-19-2021 12:48 PM

Hi,

For what it is worth, Hugh Kenner (PPC member #103) posted a 224-step HP67 Easter program in the PPC Journal in Volume 5 Number 4 Page 7 (May 1978).

Jake


RE: HP67 Date of Easter - Gene - 04-19-2021 02:33 PM

Here it is. Let's compare the two. Always good to see how an approach to a problem can be different.

HP67Child... your program may do things better than this one. Let's see. :-)

Gene


RE: HP67 Date of Easter - HP67Child - 05-06-2021 11:22 AM

Hi,

The algorithm origitates from http://www.assa.org.au/edm.html#Computer

I've slightly changed the code so that you can read it more easily. E.g. I used "ENTER", "/" and "x<->y".
It works in the following way:
Write a year as a 4-digit number. Press A. The result is in the form M.DD (Month.Day) which is the Easter Sunday of the year.
Exemples:
2021
A
4.04
1967
A
3.26
2000
A
4.23
The year must be between 1583 and 4099. Otherwise the program gives -1.

HP67Child


RE: HP67 Date of Easter - Joe Horn - 05-06-2021 11:03 PM

(05-06-2021 11:22 AM)HP67Child Wrote:  It works in the following way: ...

Your 287-step program doesn't fit into my 224-step HP-67. Sad


RE: HP67 Date of Easter - rprosperi - 05-07-2021 03:02 AM

(05-06-2021 11:03 PM)Joe Horn Wrote:  
(05-06-2021 11:22 AM)HP67Child Wrote:  It works in the following way: ...

Your 287-step program doesn't fit into my 224-step HP-67. Sad

It would appear the emulator the author used was not authentic in at least one way... Wink


RE: HP67 Date of Easter - HP67Child - 05-07-2021 06:19 AM

I do apologize.
I don't have a real HP67 (I'd love to have one), but I instead use an Android emulation that appears not to have this size limit.
I promise to try to shrink the program (if I had eough time to do the task).

The format of the code in the attached file is appropriate for you?

Once more sorry
HP67Child


RE: HP67 Date of Easter - HP67Child - 05-07-2021 06:27 AM

But please help me. What is the real size limit? My faint memory about a real HP67 is that the limit is 255. Am I wrong? Is the real limit 224?

Thank you
HP67Child


RE: HP67 Date of Easter - Joe Horn - 05-07-2021 08:29 AM

(05-07-2021 06:27 AM)HP67Child Wrote:  But please help me. What is the real size limit? My faint memory about a real HP67 is that the limit is 255. Am I wrong? Is the real limit 224?

Yes, the physical HP-67 and HP-97 have a maximum of 224 program steps.


RE: HP67 Date of Easter - HP67Child - 05-07-2021 09:48 AM

Thank you for your answer