wcosmo.wcosmo.comoving_distance#

wcosmo.wcosmo.comoving_distance(z, H0, Om0, w0=-1, method='pade')[source]#

Compute the comoving distance using an analytic integral of the Pade approximation.

\[d_{C} = d_{H} \int_{0}^{z} \frac{dz'}{E(z'; \Omega_{m,0}, w_0)}\]
Parameters:
z: array_like

Redshift

H0: array_like

The Hubble constant in km/s/Mpc

Om0: array_like

The matter density fraction

w0: array_like

The (constant) equation of state parameter for dark energy

Returns:
comoving_distance: array_like

The comoving distance in Mpc