(41CX/DM41)(17Bii) Date of the first Advent Sunday in a year
|
02-04-2020, 10:34 PM
(This post was last modified: 02-04-2020 10:35 PM by jthole.)
Post: #1
|
|||
|
|||
(41CX/DM41)(17Bii) Date of the first Advent Sunday in a year
This small program is an adaptation of an equation I have in my HP 17Bii. One of the reasons for posting this here, is that it shows the elegance of the HP 17Bii solver. The other reason is that it's fun, and can be useful (if only because you know when to open the first window of the Advent calendar ;-) ).
First of all, here is the short and simple HP 17Bii Solver equation: (both the solver and program assume DD.MMYYYY). Code:
And here is the HP 41CX/DM41L program, which takes the year in the X register (just following the equation; maybe could be optimised further). Code:
Running on the 17Bii: Enter YEAR: 2021 Solve ADVDATE: 28,112021 Running on the DM41L: 2021 XEQ ADVDATE 28,112021 Of course, the program (and equation) only works for the Gregorian calendar. Monday Jan. 1, 1900 was chosen because I liked that date (any date works, as long as you adjust the offset (currently 22) in the equation. BTW; I do not have a HP 41CX, but I do have a SwissMicros DM41L; I tested the program on the DM41L. 11C, 12C, 17Bii, DM42 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - jthole - 02-04-2020 10:34 PM
RE: (41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - ggauny@live.fr - 08-10-2020, 03:02 PM
RE: (41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - Wolfgang - 01-22-2021, 01:27 PM
RE: (41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - Albert Chan - 01-24-2021, 05:00 AM
RE: (41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - Werner - 08-11-2020, 08:03 AM
RE: (41CX/DM41)(17Bii) Date of the first Advent Sunday in a year - ggauny@live.fr - 01-24-2021, 10:35 AM
|
User(s) browsing this thread: 1 Guest(s)