Blame view

modules/integrand.py 386 Bytes
30f3bf5d   Thomas Fitoussi   Adapt reading of ...
1
from constants import H0, omegaK, omegaM, omegaL, c, m , a0
7030f150   Thomas Fitoussi   Full reorganisati...
2
3
4
5
6
7
8
9
10
11
12
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))