In the below algorithm there are two lines defining 'j'. I might assume that the second definition is meant to be 'k' since it is between the first 'j' and 'l', but there is a definition for 'k' on the third line. This seems wrong... j = j - 7 * ( j / 7 ) So then which value of j is used in the definition of l? l = i - j Any ideas? Nathanial Hendler Tucson, AZ USA http://retards.org/ On Tue, Mar 29, 2005 at 12:05:09AM +1200, Russell McMahon wrote: > > http://aa.usno.navy.mil/faq/docs/easter.html > > Given year "y" this calculates > > m = month > and > d = day > > __________ > > c = y / 100 > n = y - 19 * ( y / 19 ) > k = ( c - 17 ) / 25 > i = c - c / 4 - ( c - k ) / 3 + 19 * n + 15 > i = i - 30 * ( i / 30 ) > i = i - ( i / 28 ) * ( 1 - ( i / 28 ) * ( 29 / ( i + 1 ) ) > * ( ( 21 - n ) / 11 ) ) > j = y + y / 4 + i + 2 - c + c / 4 > j = j - 7 * ( j / 7 ) > l = i - j > m = 3 + ( l + 40 ) / 44 > d = l + 28 - 31 * ( m / 4 ) > > > As I was away at an Easter Camp over the Easter period I thought this > belated technical contribution might make up slightly for any missed > prior input :-) > > > > Russell McMahon > __________________________________________________________________________ > > The Lord is Risen! - He is Risen indeed! > But the date of celebration is strangely variable :-) > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist