Easter is now fixed in the western world as the first Sunday after the first full moon after the vernal equinox. This means that Easter can occur in a 35 day period from March 22 to April 25. This code will give you the date for Easter for any year since the Gregorian calendar started in 1582.
10 REM *********************
20 REM * EASTER CALCULATOR *
30 REM *********************
40 REM
50 PRINT
100 PRINT "Give year that Easte
r date is desired. ";
110 INPUT yr
115 PRINT yr;
120 LET x=INT (yr/100+1)
125 LET y=INT (3*x/4-12)
130 LET z=yr-19*INT (yr/19)
135 LET z=z+1
150 LET u=INT (INT (8*x+5)/25-5
-y)
160 LET v=INT (5*yr/4-y-10)
170 LET w=INT (11*z+20+u)
180 LET t=w-30*INT (w/30)
200 IF t<>25 THEN GO TO 240
210 IF z<=11 THEN GO TO 240
220 LET t=t+1
240 IF t<>24 THEN GO TO 260
250 LET t=t+1
260 LET d=44-t
270 IF d>=21 THEN GO TO 290
280 LET d=d+30
290 LET c=d+v
300 LET cr=c-7*INT (c/7)
320 LET d=d+7-cr
325 LET d=INT d
330 IF d>31 THEN GO TO 360
340 PRINT " March ";d
350 GO TO 50
360 PRINT " April ";(d-31)
370 GO TO 50
After running the program for a few sample years to check its accuracy I decided to add a few lines to the code to see what the frequency distribution of days was. In addition to the additions and modifications shown below you must also add a DIM p(37) at line 5.
350 GO TO 370
360 PRINT " April ";(d-31)
370 LET p(d-20)=p(d-20)+1
380 LET yr=yr+1
390 IF yr<2086 THEN GO TO 120
400 FOR k=1 TO 10
410 LPRINT "March ";20+k;TAB 11
;p(k)
420 NEXT k
430 FOR k=11 TO 37
440 LPRINT "April ";k-10;TAB 11
;p(k)
450 NEXT k
460 STOP
Easter … Frequency Distribution
March 21 0 March 22 4 March 23 7 March 24 2 March 25 9 March 26 16 March 27 15 March 28 12 March 29 15 March 30 17 April 1 20 April 2 18 April 3 16 April 4 15 April 5 15 April 6 21 April 7 20 April 8 15 April 9 14 April 10 12 April 11 20 April 12 21 April 13 16 April 14 14 April 15 17 April 16 17 April 17 21 April 18 18 April 19 17 April 20 17 April 21 13 April 22 18 April 23 15 April 24 6 April 25 5 April 26 5 April 27 0
Here is the distribution of occurances of Easter from 1583 to 2085.
The probability of Easter falling on any particular day seems to fall off for the 3 days at either end but to be fairly equal from March 26 to April 23. From random chance one would expect the observed number to vary by the square root of the number.
In this case the average is 16.6 and the standard deviation is 2.6 which is even less than one might expect.
R. A. Schrack
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.