pygnuastro.cosmology.critical_density

pygnuastro.cosmology.critical_density()

Returns the critical density at redshift z in units of g/cm3.

Parameters:
  • z (float) – Redshift

  • H0 (float/None) – Hubble constant in units of km/sec/Mpc

  • olambda (float/None) – Cosmological Constant

  • omatter (float/None) – Matter Density

  • oradiation (float/None) – Radiation Density

Returns:

The age of the universe at redshit z in units of Giga years.

Return type:

float