class_docstr: Class to enable simple cosmological calculations.
  
  For a more full-featured cosmology package, see CosmoloPy [1]_
  
  Parameters
  ----------
  omegaM : float
      Matter Density. 0 <= omegaM <= 1
  omegaL : float
      Dark energy density. 0 <= omegaL <= 1
  h : float
      Hubble parameter, in units of 100 km/s/Mpc
  
  References
  ----------
  [1] http://roban.github.com/CosmoloPy/
docstr: Line of sight comoving distance at redshift z
  Remains constant with epoch if objects are in the Hubble flow
docstr_tok: ["Line","of","sight","comoving","distance","at","redshift","z","Remains","constant","with","epoch","if","objects","are","in","the","Hubble","flow"]
code: def Dc(self, z):
      """
      Line of sight comoving distance at redshift z
      Remains constant with epoch if objects are in the Hubble flow
      """
      if z == 0:
          return 0
      else:
  
          def f(z):
              return 1.0 / self._hinv(z)
  
          integral = integrate.quad(f, 0, z)
          return self.Dh * integral[0]
  
file_path: astroML/astroML/cosmology.py
imports: import numpy
  from scipy import integrate
  from astroML.utils import deprecated
  from astroML.utils.exceptions import AstroMLDeprecationWarning
label_desc: Use image node_id 3 for calling the Cosmology obj's underlying member method code with example usage: obj.Dc(z) and returns: int, unknown, unknown