HP Forums
Easter JULIAN - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Easter JULIAN (/thread-5043.html)



Easter JULIAN - ggauny@live.fr - 10-31-2015 08:57 PM

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.


RE: Easter JULIAN - Dieter - 10-31-2015 10:09 PM

(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


RE: Easter JULIAN - walter b - 10-31-2015 10:34 PM

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:-/


RE: Easter JULIAN - Sylvain Cote - 10-31-2015 11:06 PM

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


RE: Easter JULIAN - Paul Dale - 10-31-2015 11:19 PM

(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


RE: Easter JULIAN - Dieter - 11-01-2015 12:27 AM

(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


RE: Easter JULIAN - ggauny@live.fr - 11-01-2015 08:01 AM

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 !


RE: Easter JULIAN - walter b - 11-01-2015 08:32 AM

(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:-)


RE: Easter JULIAN - Paul Dale - 11-01-2015 08:42 AM

In fact there was an EASTER command in the 34S for a while too...


- Pauli


RE: Easter JULIAN - walter b - 11-01-2015 08:45 AM

(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:-)


RE: Easter JULIAN - walter b - 11-01-2015 08:48 AM

... which was shot down since we didn't want to enter the field of religious calculators - too many mines there!

([:-I


RE: Easter JULIAN - Dieter - 11-01-2015 12:40 PM

(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


RE: Easter JULIAN - ggauny@live.fr - 11-01-2015 05:30 PM

Hi,



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

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


RE: Easter JULIAN - ggauny@live.fr - 11-01-2015 06:22 PM

Hi Dieter,

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

Good night.

Gérard.


RE: Easter JULIAN - walter b - 11-01-2015 10:35 PM

(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:-)


RE: Easter JULIAN - ggauny@live.fr - 11-02-2015 07:44 AM

Dear Walter

Thank for explaination !!!!

In french, yes, ......

Ha ha !

Gérard.

BTW, is it possible to buy NOW a WP43s ?