Post Reply 
Easter JULIAN
10-31-2015, 08:57 PM
Post: #1
Easter JULIAN
Hi all,

Here is a little routine to get the date of Easter in Julian calendar.
I have to finish the same in Gregorian, and after merged the two programs, soon.
As Dieter asked years ago, it would be usefull to have a DIVMOD function !

Gérard.

Gérard.
Find all posts by this user
Quote this message in a reply
10-31-2015, 10:09 PM
Post: #2
RE: Easter JULIAN
(10-31-2015 08:57 PM)ggauny@live.fr Wrote:  Here is a little routine to get the date of Easter in Julian calendar.

This returns 18.04 for 2016. Is this the correct date?

If yes, here is an improved version. I am posting this because some days ago you suggested a kind of "tips and tricks" section for the one or other calculator, and this routine demonstrates quite a few ways to use the 34s more effectively. So this might provide some helpful insights.

Code:
001 LBL'PAQ'
002 FILL
003 # 019
004 RMDR
005 RCL× L
006 # 015
007 +
008 # 030
009 RMDR
010 R↑
011 # 004
012 RMDR
013 STO+ X
014 R↑
015 # 007
016 RMDR
017 # 004
018 ×
019 +
020 x<> Y
021 -
022 RCL L
023 x<> Y
024 # 034
025 +
026 # 007
027 RMDR
028 +
029 # 114
030 +
031 RCL X
032 # 031
033 RMDR
034 INC X
035 x<> Y
036 # 031
037 IDIV
038 SDR 002
039 +
040 END

NB: I used the RMDR command since it is directly available on the keyboard, and for positive x and y the results are the same as for MOD.

NB2: Yes, I still think a function that returns both DIV and MOD in X and Y in one single step would be helpful under many circumstances, but I do not see much hope that this will get implemented in the 34s.

Dieter
Find all posts by this user
Quote this message in a reply
10-31-2015, 10:34 PM
Post: #3
RE: Easter JULIAN
DIVMOD was never advertised for the WP 34S. Thus, its nonexistence is no bug. The project WP 34S is closed for many months. So you won't see DIVMOD on the WP 34S.

d:-/
Find all posts by this user
Quote this message in a reply
10-31-2015, 11:06 PM
Post: #4
RE: Easter JULIAN
A little bit off subject but in the same domain.
Here is a very entertaining video from Tom Scott in the Computerphile series about the timezones, daylight saving and calendars calculation.
Sylvain
Find all posts by this user
Quote this message in a reply
10-31-2015, 11:19 PM
Post: #5
RE: Easter JULIAN
(10-31-2015 10:09 PM)Dieter Wrote:  Yes, I still think a function that returns both DIV and MOD in X and Y in one single step would be helpful under many circumstances, but I do not see much hope that this will get implemented in the 34s.

I agree, it would be useful for some problems. The issue being that there are lots of functions that would be helpful and not enough space.

I implemented some constant arithmetic functions at one point which were a combination of #nnn and the arithmetic operators -- these didn't make the cut but they'd be very useful saving program steps. We had RCL functions for the flash backup memory which would have permitted custom read only constants -- also omitted. There are quite a few others...

- Pauli
Find all posts by this user
Quote this message in a reply
11-01-2015, 12:27 AM
Post: #6
RE: Easter JULIAN
(10-31-2015 10:34 PM)walter b Wrote:  DIVMOD was never advertised for the WP 34S. Thus, its nonexistence is no bug.

DIVMOD has been discussed in August 2012 (!), cf. message #23. There also was at least one other person that seemed to like the idea, cf. message #24. #-)

(10-31-2015 10:34 PM)walter b Wrote:  dUndecided

Yes, really.

Dieter
Find all posts by this user
Quote this message in a reply
11-01-2015, 08:01 AM
Post: #7
RE: Easter JULIAN
hi Dieter,

"This returns 18.04 for 2016. Is this the correct date?"

No but my routine is only for Julian years, so for Gregorian the answer is 27/3.

BTW, thanks for explication and correction of the routine.

Thanks too at MRS Walter, Pauli and Sylvain.

May this function in the WP43s, wich is wait impatientlely, I have the presentation of M Schwartz (HHC2015), yes impatiently....

Have a good day

Gérard an HP man from the biguining !

Gérard.
Find all posts by this user
Quote this message in a reply
11-01-2015, 08:32 AM
Post: #8
RE: Easter JULIAN
(11-01-2015 08:01 AM)ggauny@live.fr Wrote:  Gérard an HP man from the biguining !

Ah oui, un ancien caricaturiste, un pied-noir!

d:-)
Find all posts by this user
Quote this message in a reply
11-01-2015, 08:42 AM
Post: #9
RE: Easter JULIAN
In fact there was an EASTER command in the 34S for a while too...


- Pauli
Find all posts by this user
Quote this message in a reply
11-01-2015, 08:45 AM
Post: #10
RE: Easter JULIAN
(11-01-2015 12:27 AM)Dieter Wrote:  There also was at least one other person that seemed to like the idea, cf. message #24. #-)

You may learn that even the supporting vote of that one person wasn't sufficient.

d:-)
Find all posts by this user
Quote this message in a reply
11-01-2015, 08:48 AM
Post: #11
RE: Easter JULIAN
... which was shot down since we didn't want to enter the field of religious calculators - too many mines there!

([:-I
Find all posts by this user
Quote this message in a reply
11-01-2015, 12:40 PM
Post: #12
RE: Easter JULIAN
(11-01-2015 08:01 AM)ggauny@live.fr Wrote:  "This returns 18.04 for 2016. Is this the correct date?"

No but my routine is only for Julian years, so for Gregorian the answer is 27/3.

The Julian calendar is still used in the Eastern Orthodox Church, so I assumed your routine calculates their Easter date. Actually it calculates the Easter date in a proleptic, "old style" Julian calendar. This usually does not agree with the Eastern Easter date (which I assumed was calculated).

In this way the results seem to be correct. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
11-01-2015, 05:30 PM
Post: #13
RE: Easter JULIAN
Hi,



"Ah oui, un ancien caricaturiste, un pied-noir!" ????

Why dou you say that,
I don't understand, may be it is Teutonic humour ?

Gérard.
Find all posts by this user
Quote this message in a reply
11-01-2015, 06:22 PM
Post: #14
RE: Easter JULIAN
Hi Dieter,

Yes, in JULIAN and "proleptic". Like in your HP35s calendar 'J', with flag set.

Good night.

Gérard.

Gérard.
Find all posts by this user
Quote this message in a reply
11-01-2015, 10:35 PM
Post: #15
RE: Easter JULIAN
(11-01-2015 08:32 AM)walter b Wrote:  
(11-01-2015 08:01 AM)ggauny@live.fr Wrote:  Gérard an HP man from the biguining !

Ah oui, un ancien caricaturiste, un pied-noir!

d:-)

M. Gérard,

Explaining jokes is one of my favourites Wink So be it:
You've drawn a caveman next to an HP-35. It looks like you are experienced in drawing such men. Smile Besides having a huge beard, this caveman has quite dark feet - so I called him a blackfoot (I know there is a second meaning associated to blackfeet in French - anyway, it is attached to that caveman only).

Hope this helps.

d:-)
Find all posts by this user
Quote this message in a reply
11-02-2015, 07:44 AM
Post: #16
RE: Easter JULIAN
Dear Walter

Thank for explaination !!!!

In french, yes, ......

Ha ha !

Gérard.

BTW, is it possible to buy NOW a WP43s ?

Gérard.
Find all posts by this user
Quote this message in a reply
Post Reply 




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