Easter

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

Easter

Postby Roger|Dyalog on Sat Apr 11, 2020 4:51 pm

What's the date of this year's Easter?

      )copy dfns easter
C:\Program Files\Dyalog\Dyalog APL-64 17.1 Unicode\ws\dfns.dws
saved Tue Feb 5 20:01:46 2019
easter 2020
20200412

The function was written by John Scholes, our late great Genius, Gentleman, and Mischievous Schoolboy (and Master). The documentation for the "easter" function begins as follows (http://dfns.dyalog.com/n_easter.htm):
In 325 A.D. the Council of Nicaea decreed that Easter was to fall upon the first Sunday after the first full moon on or after the Vernal Equinox.

Suggested by John R. Clark, this algorithm is taken from D.E.Knuth's "The Art of Computer Programming - Fundamental Algorithms" Vol 1, Ch 1.3.2 Ex14.

Knuth says: "The algorithm, due to the Neapolitan astronomer Aloysius Lilius and the German Jesuit mathematician Christopher Clavius in the late 16th century is used by most Western churches to determine the date of Easter Sunday for any year after 1582. The first systematic algorithm for calculating the date of Easter was the "canon paschalis" due to Victorius of Aquitania (457 A.D.). There are many indications that the sole important application of arithmetic in Europe during the Middle Ages was the calculation of Easter date, and so such algorithms are historically significant."

For more on the life and works of John, see:
Roger|Dyalog
 
Posts: 238
Joined: Thu Jul 28, 2011 10:53 am

Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest