toto jsou vysledky nize uvedeneho skriptu pro cast E Year Range: 1600-1700 1 - From…
- User
toto jsou vysledky nize uvedeneho skriptu pro cast E
Year Range: 1600-1700
1 - From Gregorian until Julian Easter Sunday Total Days: 931 (133 weeks)
2 - From Passover until Gregorian Easter Sunday Total Days: 53
3 - From Passover until Julian Easter Sunday Total Days: 984
4 - From Julian Easter Full Moon until Gregorian Easter Full Moon Total Days: 0 (0 weeks)
5 - From Julian Easter Full Moon until Julian Easter Sunday Total Days: 0 (0 weeks)
6 - From Julian Easter Full Moon until Gregorian Easter Sunday Total Days: 0 (0 weeks)
7 - From Julian Easter Full Moon until Passover Total Days: 0 (0 weeks)
8 - From Gregorian Easter Full Moon until Gregorian Easter Sunday Total Days: 0 (0 weeks)
9 - From Gregorian Easter Full Moon until Julian Easter Sunday Total Days: 0 (0 weeks)
10 - From Gregorian Easter Full Moon until Passover Total Days: 0 (0 weeks)
vsechny nulove hodnoty je treba dopocitat
import math
def gmod(m, n): """Generalized modulo function to handle negative numbers.""" return ((m % n) + n) % n
def addspace(x): """Adds a leading space to single-digit numbers for alignment.""" return f" {x}" if x < 10 else f"{x}"
def yeartype(year, cal='j'): """ Determines if the year is a leap year based on the calendar. cal='j' for Julian, 'g' for Gregorian. """ yt = 0 if gmod(year, 4) == 0: yt = 1 if cal == 'g': if gmod(year, 100) == 0: yt = 0 if gmod(year, 400) == 0: yt = 1 return yt
Arrays as per the source code
domletname = ["G","F","E","D","C","B","A","AG","GF","FE","ED","DC","CB","BA"] epactname = ["*(XXX)","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII", "XIV","XV","XVI","XVII","XVIII","XIX","XX","XXI","XXII","XXIII","XXIV","XXV", "XXVI","XXVII","XXVIII","XXIX"] martyrj = ["a","b","c","d","e","f","g","h","i","k","l","m","n","p","q","r","s","t","u"] martyrg = ["a","b","c","d","e","f","g","h","i","k","l","m","n","p","q","r","s","t","u", "A","B","C","D","E","F","G","H","M","N","P"] monthname = ["January","February","March","April","May","June","July","August","September", "October","November","December"] wdname = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] yearlength = ["common","bissextile"]
def calculate_jd(year, month, day, calendar='g'): """Calculate the Julian Day Number for the given date.""" if month <= 2: year -=1 month +=12 A = math.floor(year / 100) if calendar == 'g': B = 2 - A + math.floor(A /4) else: B =0 JD = math.floor(365.25*(year + 4716)) + math.floor(30.6001*(month +1)) + day + B -1524.5 JD_int = int(math.floor(JD + 0.5)) return JD_int
def jul_easter(year, emod): """Calculates Julian Easter Sunday date.""" a = gmod(year, 19) gn = a + 1 # Golden Number b = gmod(year, 4) c = gmod(year, 7) d = gmod((19 * a + 15), 30) if emod == 1 and gn == 1: d += 1 e = gmod((2 * b + 4 * c - d + 6), 7) fmj = 113 + d # Easter full moon [days after -92 March] dmj = fmj + e + 1 # Easter Sunday [days after -92 March] fmmj = math.floor(fmj / 31) fmdj = gmod(fmj, 31) + 1 esmj = math.floor(dmj / 31) esdj = gmod(dmj, 31) + 1 sc = gmod((year + 8), 28) + 1 s = gmod((4 + math.floor(5 * year / 4)), 7) yt = yeartype(year, 'j') dl_index = s + 7 * yt dl = domletname[dl_index] if dl_index < len(domletname) else "Unknown" return [dmj, esdj, esmj, fmj, fmdj, fmmj, gn, sc, dl]
- Assistant