Post Reply 
(49G) Friday 13th calculation
06-22-2014, 06:16 AM
Post: #2
RE: HP 49G Friday 13th calculation
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.

<0|ΙΈ|0>
-Joe-
Visit this user's website 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 - Joe Horn - 06-22-2014 06:16 AM
RE: HP 49G Friday 13th calculation - HP67 - 06-22-2014, 06:23 AM



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