(12C Platinum) Day of Easter
|
09-15-2016, 01:15 PM
(This post was last modified: 09-15-2016 05:36 PM by Dieter.)
Post: #10
|
|||
|
|||
RE: (12C Platinum) Day of Easter
(09-15-2016 01:15 AM)Gerson W. Barbosa Wrote: Very nice! I will try it when I find my 3-cell 12C. You can also implement that algorithm on the 42s. This avoids the error you got with the program you linked to: (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: Yes, the error is "by design" – obviously the calculation gets something wrong. I tried the BASIC algorithm in another 42s implementation and it gets the same errors. But in a much shorter program and with merely two data registers: Code: 00 { 123-Byte Prgm } Edit: replaced program with an updated version, including a bugfix. OK, this is without the carnival part. ;-) But Free42 features additional calendar functions, so a simple –49 DATE+ at the end will get you the date of carnival. But once again: there is an error in this algorithm. The mentioned 29C program seems to work fine. So what about a 42s version? Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)