Post Reply 
(49G) Friday 13th calculation
06-22-2014, 07:13 AM
Post: #4
RE: HP 49G Friday 13th calculation
(06-22-2014 06:16 AM)Joe Horn Wrote:  Here's my ancient User RPL version, which was included in "One-Minute Marvels" by Richard Nelson and Wlodek Mier-Jedrzejowicz:

Code:
<<  1000000  /  1.13  +  13  FOR  d  6.133  d  DDAYS  7  MOD  NOT  d  IFT  NEXT  >>

Since there are not many ways of doing it, the code looks very much like yours.

Same input as yours: Just the desired year. However, my version assumes MDY mode. Changing it to DMY is left as an exercise for the student.

I probably copied Joe Horn's prog some time ago. Credit to him.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(49G) Friday 13th calculation - Gerald H - 06-21-2014, 02:09 PM
RE: HP 49G Friday 13th calculation - Gerald H - 06-22-2014 07:13 AM
RE: HP 49G Friday 13th calculation - HP67 - 06-22-2014, 06:23 AM



User(s) browsing this thread: 1 Guest(s)