(12C Platinum) Day of Easter
|
09-17-2016, 07:12 PM
(This post was last modified: 09-17-2016 09:28 PM by Dieter.)
Post: #19
|
|||
|
|||
RE: (12C Platinum) Day of Easter
(09-15-2016 01:15 AM)Gerson W. Barbosa Wrote: Unfortunately my HP-42S program gets Easter of 1954 wrong (Apr-25 instead of Apr-18). Hopefully not my fault as this agrees with the original Basic program: Gerson, I just happened to find this algorithm via Google books in a Turbo Pascal book by Nell Dale and Chip Weems. There is a remark saying that the program works for years between 1982 and 2048 (!). And within the period from 1900 to 2099 there are four years where the result is one week late: 1954 (sic!), 1981, 2049 and 2076. ;-) If you still have the magazine article you mentioned, you may look if there is a similar remark with this restriction. Update: Here is a 42s version of the Easter/Carnival program based on the 29C algorithm. The method for determining the number of days in February is explained at this 35s program. Code: 00 { 216-Byte Prgm } Example: 1954 XEQ "EASTER" => Easter: 18-4-1954 Carnival: 28-2-1954 Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)