- #1
slothwayne
- 2
- 0
I'm trying to plot the density parameters against redshift in Python, so I suppose this is kind of a cross over of programming and physics. I've been given the following two equations in order to do so
$$r(z) = \lambda_H \int_{0}^{z} \frac{dz'}{E(z')}$$
$$E(z) = \frac{H(z)}{H_0} = \sqrt {\Omega_\Lambda + \Omega_M (1+z)^3}$$
where I have neglected the curvature term as I am assuming a flat universe.
I have a relatively basic understanding of Python, so I'm generally struggling on how to get any actual numbers out of Python using these two, the plotting itself shouldn't be a problem once I have the correct code.
How do I use these equations to find the density parameters as a function of the redshift, or maybe I could use the radial comoving distance r(z)? I'm not too sure.
I figured it would be better to post here than the programming section as most people with a higher understanding of Physics also have some coding experience.
Thanks in advance.
$$r(z) = \lambda_H \int_{0}^{z} \frac{dz'}{E(z')}$$
$$E(z) = \frac{H(z)}{H_0} = \sqrt {\Omega_\Lambda + \Omega_M (1+z)^3}$$
where I have neglected the curvature term as I am assuming a flat universe.
I have a relatively basic understanding of Python, so I'm generally struggling on how to get any actual numbers out of Python using these two, the plotting itself shouldn't be a problem once I have the correct code.
How do I use these equations to find the density parameters as a function of the redshift, or maybe I could use the radial comoving distance r(z)? I'm not too sure.
I figured it would be better to post here than the programming section as most people with a higher understanding of Physics also have some coding experience.
Thanks in advance.