1 2 3 4 5 6 7 8 9 10 11 12
from Constants import H0, omegaK, omegaM, omegaL, c, m , a0 from numpy import sqrt def comobileTime(z): return -1/(H0*(1+z)*sqrt(omegaM*(1+z)**3+omegaK*(1+z)**2+omegaL)) def distPhoton(z): return -c/(H0*a0*sqrt(omegaM*(1+z)**3+omegaK*(1+z)**2+omegaL)) def distLepton(z,E): beta = sqrt(1-m**2*c**4/E**2) return -beta*c/(H0*a0*sqrt(omegaM*(1+z)**3+omegaK*(1+z)**2+omegaL))