# Plotting Density Parameters as a Function of Redshift

Tags:
1. Nov 6, 2016

### slothwayne

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.

2. Nov 11, 2016

### Greg Bernhardt

Thanks for the thread! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post? The more details the better.