wcosmo.wcosmo.efunc#

wcosmo.wcosmo.efunc(z, Om0, w0=-1)[source]#

Compute the \(E(z)\) function for a flat wCDM cosmology.

\[E(z; \Omega_{m,0}, w_0) = \sqrt{\Omega_{m,0} (1 + z)^3 + (1 - \Omega_{m,0}) (1 + z)^{3(1 + w_0)}}\]
Parameters:
z: array_like

Redshift

Om0: array_like

The matter density fraction

w0: array_like

The (constant) equation of state parameter for dark energy

Returns:
E(z): array_like

The E(z) function