Bases: astropy.cosmology.LambdaCDM
FLRW cosmology with a cosmological constant and no curvature.
This has no additional attributes beyond those of FLRW.
| Parameters: | H0 : float or Quantity
Om0 : float
Tcmb0 : float or Quantity
Neff : float
m_nu : Quantity
name : str
|
|---|
Examples
>>> from astropy.cosmology import FlatLambdaCDM
>>> cosmo = FlatLambdaCDM(H0=70, Om0=0.3)
The comoving distance in Mpc at redshift z:
>>> z = 0.5
>>> dc = cosmo.comoving_distance(z)
Methods Summary
| efunc(z) | Function used to calculate H(z), the Hubble parameter. |
| inv_efunc(z) | Function used to calculate . |
Methods Documentation
Function used to calculate H(z), the Hubble parameter.
| Parameters: | z : array_like
|
|---|---|
| Returns: | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that
.
Function used to calculate
.
| Parameters: | z : array_like
|
|---|---|
| Returns: | E : ndarray, or float if input scalar
|
Notes
The return value, E, is defined such that
.