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: Transverse comoving distance at redshift z
  At same redshift but separated by angle dtheta;
  Dm * dtheta is transverse comoving distance
docstr_tok: ["Transverse","comoving","distance","at","redshift","z","At","same","redshift","but","separated","by","angle","dtheta",";","Dm","*","dtheta","is","transverse","comoving","distance"]
code: def Dm(self, z):
      """
      Transverse comoving distance at redshift z
      At same redshift but separated by angle dtheta;
      Dm * dtheta is transverse comoving distance
      """
      sOk = np.sqrt(abs(self.omegaK))
  
      if self.omegaK < 0.0:
          return self.Dh * np.sin(sOk * self.Dc(z) / self.Dh) / sOk
      elif self.omegaK == 0.0:
          return self.Dc(z)
      else:
          return self.Dh * np.sinh(sOk * self.Dc(z) / self.Dh) / sOk
  
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 4 for calling the Cosmology obj's underlying member method code with example usage: obj.Dm(z) and returns: unknown, self, unknown